W3C home > Mailing lists > Public > public-web-perf@w3.org > September 2013

[ResourcePriorities] lazyload vs. document.readyState

From: Ivan Kotenkov <kotenkov@yandex-team.ru>
Date: Fri, 6 Sep 2013 16:27:36 +0400
Message-Id: <661AD8A1-5772-4126-A86F-CEE70C147593@yandex-team.ru>
Cc: Константин Никитин <stromsund@yandex-team.ru>
To: public-web-perf@w3.org
Hello!

Document has an attribute readyState which changes during document loading and fires a readystatechange event on it's change.

Current version of the draft doesn't mention this attribute and event, though it is strongly related to window.load event. 

My suggestion is to add a subsection about the attribute and corresponding event describing it's behavior when elements with lazyload or postpone attributes exist.

Changing readyState to complete when everything except lazyload\postpone resources is loaded seems intuitive to me, but we can also add another state to document.readyState. Whichever option is better, I believe it should be explicitly stated in the draft.

Thanks!

--
Ivan Kotenkov






Received on Friday, 6 September 2013 17:00:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:01:21 UTC