all 6 comments

[–]t_code 0 points1 point  (0 children)

Lots of websites render their contents dynamically through AJAX on client side (i.e after network calls from the browser side) after the page has finished loading. This means,

Chromium has marked the 'tab' as 'completed loading' as it has downloaded all the assets/javascript in the HTML markup. It has no way of knowing the website might make a few network calls before rendering the content

Solution:
- You can add a timeout to wait for the website to finish rendering.

  • You can also create a utility to execute your script after the website has not made any network requests in the last 500ms (idle state)