script: Add support for modulepreload link elements#42964
Open
Gae24 wants to merge 5 commits intoservo:mainfrom
Open
script: Add support for modulepreload link elements#42964Gae24 wants to merge 5 commits intoservo:mainfrom
Gae24 wants to merge 5 commits intoservo:mainfrom
Conversation
Signed-off-by: Gae24 <[email protected]>
Signed-off-by: Gae24 <[email protected]>
Signed-off-by: Gae24 <[email protected]>
Specification says "A user agent must not delay the load event for this link type". When starting a modulepreload fetch the module owner will be `ModuleOwner::DynamicModule`, since a fetch with `ModuleOwner::Window` will be a blocking load. Signed-off-by: Gae24 <[email protected]>
Signed-off-by: Gae24 <[email protected]>
|
🔨 Triggering try run (#22597613616) for Linux (WPT) |
|
Test results for linux-wpt from try job (#22597613616): Flaky unexpected result (28)
Stable unexpected results that are known to be intermittent (21)
Stable unexpected results (13)
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support to modulepreload link elements. Currently we only fetch the root module, as I think it is needs to be discussed whether we should always fetch module dependencies, or if it should be limited due to network constraints.
Inside
bind_to_treeI ended up callingfetch_and_process_modulepreloadinside a delayed task, since it would cause a crash due to DOM not being in a stable state when firing an event (queueing the event seems to also do the trick).Remaining tests failures are due to not supporting CSS modules and performance entries's
transfer_sizebeing 0.Testing: Covered by existing tests