[MGNLSTK-18] 1 instead of 13: Just one javascript link in the head is needed Created: 12/Nov/08  Updated: 23/Jan/13  Resolved: 19/Jan/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Timo Wirth Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: 4_0_sprint5, review1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLSTK-40 Javascript in HTML head - now even si... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Please subsitute all javascript links in the HTML head with this link.
<script type="text/javascript" src="js/scriptloader.js"></script>
That's all,

before:
************
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.mediaqueries.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/ui.core.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/ui.scroller.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/ui.slider.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.linkbutton.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.tabs.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.social-b.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.mousewheel.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/jquery.color.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/tools-n-showbox.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/swfobject.js" type="text/javascript"></script>
<script src="http://dev.magnolia-cms.com/magnolia-me-prototype/js/behaviour.js" type="text/javascript"></script>

after
***************
<script type="text/javascript" src="js/scriptloader.js"></script>



 Comments   
Comment by Magnolia International [ 12/Nov/08 ]

Yep, this is a todo in the templates - for the record, the reason we did this was that we have been linking to the prototype's css and js files directly (instead of maintaining them in the baukasten as well) and the scriptloader can only work when the scripts are in a folder called js/, relative to the calling html page.
We'll change this as soon as we also migrate the css.

Generated at Mon Feb 12 07:22:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.