Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
2.26.13
-
None
-
Maintenance Sprint 1, Maintenance Sprint 2
Description
Currently the fixes that were done for HSTTWO-2845 will break code that uses <script> tags for anything else than execution javascript, e.g. Handlebars templates.
We should improve the code that moves script elements and restrict it to elements with type="text/javascript" only. Note that in HTML5 the default value for the type attribute is "text/javascript" (if it is missing).
Examples of Handlebars templates:
<script id="entry-template" type="text/x-handlebars-template">
Hello, <strong>firstName lastName</strong>!
</script>
<script type="text/x-handlebars">
Hello, <strong>firstName lastName</strong>!
</script>
Attachments
Issue Links
- relates to
-
HSTTWO-3132 [Forward port to 7.10] - Async javascript load should only move script tags with type="text/javascript"
- Closed