-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Duplicate <script> tags for the shared chunks #5883
Comments
kristw
changed the title
Duplicate
Duplicate <script> tags for the shared chunks
Sep 13, 2018
<script>
tags for the shared chunks
This was referenced Sep 13, 2018
williaster
pushed a commit
that referenced
this issue
Sep 19, 2018
mistercrunch
pushed a commit
to lyft/incubator-superset
that referenced
this issue
Sep 21, 2018
* Fix adding duplicate script tags. * add more empty lines * rename function (cherry picked from commit 325e7c0)
betodealmeida
pushed a commit
to lyft/incubator-superset
that referenced
this issue
Oct 12, 2018
* Fix adding duplicate script tags. * add more empty lines * rename function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
Master
Expected results
One
<script>
tag for each chunk.Actual results
There are duplicate
<script>
tags for the shared chunks. If you view page source, there will be multiplevendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js
For example on the top of the page.
Because each entry in the js manifest lists an array of chunks each entry point needs, independent of other entry points. When we render this directly to FAB template, it does not de-dup.
XHR Performance-wise not too bad as browser only fetches and parses once, but for correctness, if the chunk executes something, it executes multiple times.
Steps to reproduce
Open Superset, view source.
The text was updated successfully, but these errors were encountered: