-
Notifications
You must be signed in to change notification settings - Fork 596
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 output overrides normal output later #961
Comments
thanks for the report. the preload feature was implemented in #951. it's not immediately obvious to me what the problem might be. The PR doesn't even add code that's specific to the preload feature, so you might be able to repro this even with the anyway, we take PRs! :) |
I have the same behaviour here. Though I was doing it wrong. preload system is a bit young, but could be an interesting feature for sure ! |
Hi @VivienGiraud and @iamareebjamal - I just tested wrapping multiple scripts in But... it unfortunately all breaks down if It looks like this can be fixed by updating how the cache key is generated by e.g. prepending the mode. I will put together a PR to get the discussion rolling. |
Let's say you wrote this to create a link preload tag:
It will produce this:
<link rel="preload" href="..." />
Now, when you want the actual script and you write it without preload attribute,
It still emits link preload tag.
So,
Expected:
<script src="shamalamadingdong.js"></script>
Actual:
<link rel="preload" href="shamalamadingdong.js" as="script" />
The text was updated successfully, but these errors were encountered: