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

Preload entrypoint #57

Merged
merged 5 commits into from
Jun 8, 2023
Merged

Preload entrypoint #57

merged 5 commits into from
Jun 8, 2023

Conversation

gone
Copy link
Contributor

@gone gone commented Sep 18, 2022

I have an entry point that I'd like to preload before use and would like to not block render to load the css for it. This adds a top level tag that will drop the preload statements into the dom for a given vite asset

@PetrDlouhy
Copy link
Contributor

This seems like very useful improvement. Can I help somehow to get it merged?

@codedbyjordan
Copy link

bump

@gone
Copy link
Contributor Author

gone commented Dec 6, 2022

Happy to make any changes!

@shad0wflame
Copy link

bump

@gone
Copy link
Contributor Author

gone commented May 19, 2023

bump - Happy to make any changes!

django_vite/templatetags/django_vite.py Outdated Show resolved Hide resolved
django_vite/templatetags/django_vite.py Outdated Show resolved Hide resolved
django_vite/templatetags/django_vite.py Outdated Show resolved Hide resolved
@thijskramer
Copy link
Collaborator

This PR seems an extended version of #56, is that right? If so, could you close #56?

@gone gone force-pushed the preload_entrypoint branch 2 times, most recently from 779ced8 to d41e339 Compare June 3, 2023 21:31
@gone gone force-pushed the preload_entrypoint branch from d41e339 to 3ec042a Compare June 3, 2023 21:41
@gone
Copy link
Contributor Author

gone commented Jun 3, 2023

Rebased, and updated to use the logic in #52 for preloading

@gone gone requested a review from thijskramer June 7, 2023 15:33
@thijskramer
Copy link
Collaborator

Looks good to me! I'll merge it, and I'll create a new release with this feature in it next week.

@thijskramer thijskramer merged commit 740a8d4 into MrBin99:master Jun 8, 2023
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

Successfully merging this pull request may close these issues.

5 participants