-
Notifications
You must be signed in to change notification settings - Fork 3k
When page is fully rendered event #2403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm currently working on this test case: Typical output when the app bootstraps:
Output when the state is changed:
It seems like I have two ways to achieve what I want:
|
Ok, it seems I've finally achieved the initial goal: Here is a draft of
It can be used like this:
Sure instead of stupid printing LOADING and READY texts, you can set status attribute on
see https://prerender.io/documentation/best-practices This requires the patch from: #2003 |
How to track the moment when all views are fully rendered?
I need this to set
ready
attr on<html>
element which in its turn is used at server side in a phantomjs script to feed pages back to a search engine bot.I was trying to use
$viewContentLoading
/$viewContentLoaded
events but given up: they are not paired and are called multiple times in an order which I can't comprehend. The last thing I was hoping on - the secondview
parameter of$viewContentLoaded
, but it's always NULL.Any ideas?
Related issues: #685 and #2003 . The former seems to be fixing the mess with
$viewContentLoading
/$viewContentLoaded
, but I wonder - is it possible to achieve what I want on 0.2.15The text was updated successfully, but these errors were encountered: