-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Exit sitespeed when page doesn't load #3388
Comments
Hi @jajo-shubham it works like this: First Selenium (webdriver) runs a JavaScript to go to the page and then you can use For the pageCompleteCheck and loadTime I need to check the code, those are Selenium timeouts and I don't remember in my head how that work. |
Hey @soulgalore , Thanks for the quick reply as usual. As you said It is very much possible loadEventEnd is not being triggered. So I want to customise |
Hello @soulgalore ... Any idea how to get the http response code and/or exit the process if it stuck ? |
Sorry I missed your first question:
In the pageCompleteCheck? There's no way today to get the response code in JavaScript. There's an issue for adding it to the Resource Timing API but its needed in the Navigation Timing API for this to work. |
Thanks for reverting on this..
Do you have the link for the issue so I can check it out? |
@jajo-shubham checkout w3c/resource-timing#90 |
When a URL is not found, Sitespeed keeps waiting for the page to load for 300 seconds. I want to customise this to exit out If there is no load event end for even 15 seconds or so. I read the documentation and saw the flag
--pageCompleteWaitTime
but that is not making any difference. On code inspection I also saw the flagstimeouts.pageCompleteCheck
andtimeouts.pageLoad
but they are not picked up and the defaults value are taken. Can you shed some light on how to achieve this and what do these different timeouts mean?Example:
sitespeed.io -b chrome https://gs-test-public.tricode.nl/ -n 1 --cpu --plugins.add analysisstorer --visualMetrics true --pageCompleteWaitTime 10000
The text was updated successfully, but these errors were encountered: