Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
Trunk
-
None
-
None
Description
Allow external scripts within the multi-block html template, to be rendered within the html head tag, when a new attribute data-import is set to “head” e.g.
<script src="/common/js/jquery/plugins/jsTree/jquery.jstree.js" type="application/javascript" data-import="head"></script>
With the new feature we can define external scripts in the multi-block html template that is using the library, instead of setting in layoutSetting.javaScripts.
This new feature helps with dependency management of Javascript and also reduce CSP errors.
Attachments
Attachments
Issue Links
- relates to
-
OFBIZ-11799 Move page-specific script links to html template
- Closed