You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on #7 (comment), we'd like some atts to control loading behaviour.
Strawman
Default loading behaviour should defer the load event until all loaded resources are finished.
It should also hide the content with display: none; until the resources are loaded.
Applying the fouc attribute disables the hide-until-load-event behaviour, showing content and allowing a FOUC to occur
Applying the eager attribute disables the defer-load-event behaviour, firing the load event as soon as the partial at src is fetched and parsed as innerHTML
Questions
Should we defer load for only link[rel="stylesheet"], or for img and iframe as well?
Bikeshedding attr names: proposed names are very bespoke, can we uses something more appropriate by borrowing from existing APIs? (async, defer, etc.)
OTOH, we'd perhaps like these behaviours to be opt-out rather than opt-in, so no-async no-defer?
The text was updated successfully, but these errors were encountered:
Following on #7 (comment), we'd like some atts to control loading behaviour.
Strawman
Questions
load
for onlylink[rel="stylesheet"]
, or forimg
andiframe
as well?async
,defer
, etc.)no-async no-defer
?The text was updated successfully, but these errors were encountered: