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

Implement/document <link rel="prefetch" for fonts and for .js files generated by code splitting feature #9929

Open
stargazer33 opened this issue Aug 26, 2024 · 0 comments

Comments

@stargazer33
Copy link

stargazer33 commented Aug 26, 2024

🙋 feature request

Parcel can generate files not listed under HTML <head>. Examples:

  1. Fonts, like dist/ex/bootstrap-icons.3536be6d.woff2

  2. Files created by code splitting feature: In JS code I do typesensePromise = import('typesense')
    and Parcel creates dist/ex/Typesense.dd42cc95.js 167 KB

I would like to see Parcel-generated prefetch links:
<link rel="prefetch" src="generated filename">
for such files.

If this already possible with Parcel - I would like to read documentation about this.
Can not find it in current documentation

🤔 Expected Behavior

Parcel generates prefetch links:
<link rel="prefetch" src="generated filename">
for icon fonts and JS files created by code splitting feature.

😯 Current Behavior

There are no prefetch links. Documentation does not mention this.

🔦 Context

This should improve page load speed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@stargazer33 and others