Contact emails xiaoche...@chromium.org Explainer https://gist.github.com/xiaochengh/fae2b549b3d37454beeb9028a829f4bd#explainer
Specification https://gist.github.com/xiaochengh/fae2b549b3d37454beeb9028a829f4bd Summary This feature allows putting 'blocking=render' as an attribute and value to a <script> or preload/stylesheet <link> to make it explicitly render-blocking. It can be used on, for example, critical web fonts, script-inserted scripts and style sheets, async scripts and etc, to ensure that rendering does not start prematurely while critical resources are not ready. The major goal is to reduce flash of unstyled content and layout shifting. This feature is still at a very early stage. A prototype would help the spec discussion at WHATWG. Blink componentBlink>HTML <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EHTML> Motivation All current browsers already have a render-blocking mechanism: after navigation, the user agent will not render any pixel to the screen before all stylesheets and synchronous scripts in <head> are loaded and evaluated. This prevents a Flash of Unstyled Contents (FOUC) and ensures critical scripts (like framework code) are executed, so that the page is usable after the first rendering cycle. This feature extends the mechanism with a new 'blocking' attribute to allow developers to explicitly mark resources render-blocking, and therefore support more use cases (see explainer). Initial public proposalhttps://github.com/whatwg/html/issues/7131 Search tagsrender <https://chromestatus.com/features#tags:render>, blocking <https://chromestatus.com/features#tags:blocking> TAG review TAG review statusPending Risks Interoperability and Compatibility Gecko: No signal WebKit: No signal Web developers: No signals Other signals: Debuggability Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md> ?No Flag name Requires code in //chrome?False Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1271296 Estimated milestones No milestones specified Link to entry on the Chrome Platform Status https://chromestatus.com/feature/5452774595624960 This intent message was generated by Chrome Platform Status <https://www.chromestatus.com/>. -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFqEGhbaKYkzgTCyV3%2BxUTaPtuS3KMJtEfTFEjjTyawTmZ5Btg%40mail.gmail.com.