Open Bug 1618549 Opened 4 years ago Updated 1 year 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, 1 obsolete file)

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
Severity: normal → S3
Assignee: nobody → manuel
Status: NEW → ASSIGNED
Attachment #9324880 - Attachment is obsolete: true
Assignee: manuel → nobody
Status: ASSIGNED → NEW
See Also: → 1801582
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: