Open Bug 1618549 Opened 8 months ago Updated 5 months ago

[rel=preload] Better granularity for preload/speculative load deduplication

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: mayhemer, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(4 files)

Part of Design documentation for rel=preload

Please see the implementation notes for Better deduplication of requests in HTML5 parser.

We want to make speculative request deduplication in the HTML5 parser be more fine grained. From mere URL to the full "key" as defined in the design document above.

I more tend to move the deduplication checks inside the loaders themselves. If left in the parser we would need to build the (expensive) key for a resource load twice: in the parser and in the loader. Moving this inside loaders would also make the code more clear about where the coalescing happens. Right now the loaders depend on the caller (the HTML5 parser) to do the coalescing job. Loaders count on their respective "Preload*" methods being called NO MORE than once for exactly the same resource. This should change.

Summary: [rel=preload] as="fetch" preload support → [rel=preload] Better granularity for preload/speculative load deduplication
Blocks: 1623953
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Priority: -- → P2
Depends on: 1636106
No longer blocks: 1623953
No longer depends on: 1636106
Blocks: 1599793
Assignee: honzab.moz → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.