-
Notifications
You must be signed in to change notification settings - Fork 11
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
{{asset "bundles"}} #47
Comments
For this to work we need Steal to set |
An even crazier idea: inline the source code directly in script tags. |
Providing the dep tree would be an easier / safer version that would be only slightly slower. Sent from my iPhone
|
I don't know what would be unsafe about inserting the scripts, this is what steal does anyways, right? The hard part would be getting them in the correct order, so yeah I guess inserting the depCache would be an easier alternative. I'll give it a shot when I have some free time. |
Safer in terms of less error prone, not in terms of security. This is how the old steal worked. It's possible, but tricky. |
I don't know why we didn't think of this before @justinbmeyer but we could have a "bundles" asset type that would inline all of the bundles needed for a particular request, so you wouldn't need to wait for steal to progressively fetch them. For example:
would render to something like:
The text was updated successfully, but these errors were encountered: