On Wed, Mar 12, 2025 at 9:18 AM Jiacheng Guo <[email protected]> wrote:
> Yes, inserting render-blocking elements in the headers is supported.
> I'm not very accurate in the previous message. The current situation is
> that Chrome cannot fulfill a render-blocking element to unblock the
> renderer if it is inserted from the script.
>
> For instance, this page will not work:
>
> <!doctype html>
> <head>
> <link rel="expect" href="#target-id" blocking="render"/>
> </head>
> <body>
> <script>
> var div_element = document.creteElement('div');
> div_element.id = 'target-id';
> div_element.textContent = 'test';
> document.body.appendChild(div_element);
> </script>
> </body>
>
> This would work according to spec and if it's not working in
implementation it would be a bug.
I'm pretty sure it's working in the implementation as well
having implemented some of this myself.
--
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 [email protected].
To view this discussion visit
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJn%3DMYbNVbQ19kwkM5x3dQL1murjuVmtByHv983-5o9AGzjphA%40mail.gmail.com.