-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Move polyfill JavaScript code to be included as a remote script from … #14318
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
Move polyfill JavaScript code to be included as a remote script from … #14318
Conversation
fb92257 to
3668651
Compare
|
Updating to fix the coding style since it was moved... |
3668651 to
ab934f6
Compare
|
Updated code style which is now passing locally. |
bb1bbb2 to
495818f
Compare
495818f to
823f07a
Compare
VladimirZaets
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jonathanKingston. Please fix it using the backward compatible way. We can't delete block from the layout. Please look at our document for more details about backward compatibility. You can leave the block declaration, and use <script type="text/x-magento-init"> to initialize js file.
|
@VladimirZaets I'm a little confused by your comment, this should be fully backwards compatible no? If I use an init block it will be asynchronously loaded where as this will load synchronously in the same manner as the embedded block currently. |
|
@jonathanKingston We had discussion about this case and take desition that your fix is ok, so we will merge your fix in the near time, thanks. |
|
Hi @jonathanKingston. Thank you for your contribution. |
Description
Inline
<scripttags are a source of code injection, the browser can protect against this with CSP to block inline scripts. However Magento has a lot of inline scripts that need removing bit-by-bit.Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist