Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Preconnect/Preload and 103 Early Hints #4433

Open
markllego opened this issue Oct 15, 2021 · 5 comments
Open

Support for Preconnect/Preload and 103 Early Hints #4433

markllego opened this issue Oct 15, 2021 · 5 comments
Labels
feature request Indicates new feature requests needs: product cleanup needs: r&d Needs research and development (R&D) before a solution can be proposed and scoped.

Comments

@markllego
Copy link

Is your feature request related to a problem? Please describe.
WP-Rocket should upgrade the DNS prefetching to preconnect and preload in order to utilize the 103 Early Hints.

Describe the solution you'd like
Early Hints enable browsers to start preload before the main response is served. In addition, this can be used with other Resource Hints APIs like preconnect.

Link: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/early-hints.md

This will dramatically improve page load times and user experience.

Additional context

Example response header:
Link: https://example.com; rel=preconnect, https://example.com; rel=preconnect; crossorigin, https://example.com/wp-content/themes/theme.css; rel=preload, as=style;

@TokyoJump
Copy link

I fully agree with you. This is a big problem.

#801
As he predicted, this is a problem.

CloudFlare provided Early HInts as a means of optimization, but in many cases it's not possible to add it.
This is because currently users cannot add Link headers from function.php.

@piotrbak piotrbak added feature request Indicates new feature requests needs: r&d Needs research and development (R&D) before a solution can be proposed and scoped. labels Nov 4, 2021
@rayrutjes
Copy link

Hey there,

Anybody has a workaround so we can start using Early Hints with WP-Rocket?

@vipiny35
Copy link

Any update here, been waiting for too long now.

@joaodath
Copy link

Hey, WP-Rocket team! I was wondering if there are any updates to this feature request. It has the potential to improve loading times for many websites and I would love to see it land on the plugin soon <3

@BradFD
Copy link

BradFD commented Nov 11, 2023

W3 Total Cache adds link: rel=preload headers for its minified javascript files. How about adding similar to WP Rocket?

They look like:
Link: </wp-content/cache/minify/r3e0dsj.js?x38494>; rel=preload; as=script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Indicates new feature requests needs: product cleanup needs: r&d Needs research and development (R&D) before a solution can be proposed and scoped.
Projects
None yet
Development

No branches or pull requests

7 participants