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

Feature request: implement & add preloading support for client side #13

Open
renhiyama opened this issue Oct 4, 2023 · 2 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest For Hacktoberfest Bois help wanted Extra attention is needed

Comments

@renhiyama
Copy link
Contributor

Implement and add preloading support for all files (components, utils & other files) that are imported on the current page, recursively. Packit uses es-module-lexer that comes bundled with reejs at @reejs/imports/lexer.js, please make use of it to not include more dependencies by default.

@renhiyama renhiyama added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed hacktoberfest For Hacktoberfest Bois labels Oct 4, 2023
@renhiyama
Copy link
Contributor Author

Plus try not to continue anymore when it comes to loading third party libraries. You might mess up with import maps, and esm.sh already has added support for preloading nested imports on their side.

@dburles
Copy link

dburles commented Jul 6, 2024

Might be able to make use of https://github.com/dburles/modulepreload-link-relations. It uses es-module-lexer as its only dependency. I'm working on a branch at the moment that adds import map support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest For Hacktoberfest Bois help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants