Needs review
Project:
Browser update
Version:
2.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2020 at 05:54 UTC
Updated:
12 Apr 2022 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cweagansThe attached patch changes the order of the bu JS that's added to the page to be after `drupal/core` and `drupal/coreSettings`, but before everything else, thereby allowing the bu JS to run before any new JS syntax cause JS to stop executing.
This is a somewhat fragile solution (as it will break if the weights are changed in core.libraries.yml), but given that those weights haven't changed since Drupal 8, I'm inclined to think that it's workable for now. The weights for the core JS are hardcoded in core.libraries.yml, so I went with 15 to ensure the correct ordering.
Comment #3
cpierce42Pulled down the patch, tested and this patch did not work.
Comment #4
cpierce42This patch fixes the problem for me in IE, loading the JavaScript in the header without manipulating the weights.
Comment #5
luiscarvalho commentedThe patch above is likely to work, but if AdvAgg is used and it does not work, you can remove the BU library from preprocess on other module:
Comment #6
cpierce42Comment #5 does not fix the problem for me and I am not using AdvAgg module.
Please review/test #4