GoogleChromeLabs / GoogleChromeLabs/quicklink

Support preload/as

Open
#173 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.3k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

So, my app:

* Makes an XHR request for an HTML document
* Replaces current `body` with that document's `body`

Using `rel=prefetch`, browsers don't want to use the prefetched document and instead make a new request. Using `rel=preload`, though, all browsers (FF nightly, not current build) correctly make no new network requests and get the XHR requested doc from the cache.

I accomplish this right now with a super hacky fork:

Is this usecase legitimate? Should it be an option on quicklink? https://github.com/speedshop/quicklink/commit/204723d8f812000a8d73786fd86b598e6154b864

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.