mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Start implementing render-blocking mechanism from HTML spec
This change implements enough spec steps to block rendering until execution of sync scripts inserted from HTML parser is complete.
This commit is contained in:
committed by
Andreas Kling
parent
75168fa4d6
commit
da579e11b0
Notes:
github-actions[bot]
2025-02-05 17:29:43 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/da579e11b04 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3455
@@ -270,7 +270,10 @@ void EventLoop::update_the_rendering()
|
||||
if (!document.is_fully_active())
|
||||
return false;
|
||||
|
||||
// FIXME: doc is render-blocked;
|
||||
// doc is render-blocked;
|
||||
if (document.is_render_blocked()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// doc's visibility state is "hidden";
|
||||
if (document.hidden())
|
||||
|
||||
Reference in New Issue
Block a user