Post by robchef » Wed Sep 20, 2017 7:22 pm

Hi everyone how do you put the js files in the footer ?? On opencart 2.1.0.2 with journal 2 on but if some can help i really be happy.thankyou

Active Member

Posts

Joined
Tue Jun 04, 2013 9:56 pm

Post by IP_CAM » Wed Sep 20, 2017 7:33 pm

Usually, by removing some JS-Links from the header.tpl file, and placing them in the footer.tpl,
but some Functions in your Shop will no longer work, as planned, if you place some of the JS-Link-lines
in the Footer, just to mention this. You will have to check on this, JS-Link by Link. Still, it will NOT add to
overall performance, if you just plan t follow Test Site 'recommendations' ! :D
Ernie
---
Just to show, where they could be placed in the Footer Section,

Code: Select all

</div>
</div>
<script src="https://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="catalog/view/theme/default/js/additionalimage.js"></script>
<div id="footer">
...
...

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 161 guests