caroled01 Posted August 11, 2018 Share Posted August 11, 2018 Hello, I would like to set the option "move javascript code to the bottom" (in advance parameters/performance) to "yes", but it seems not to exist in Prestashop 1.7.4.2. Is someone have a solution to do this ? Thank you very much by advance ! Link to comment Share on other sites More sharing options...
Rolige Posted August 11, 2018 Share Posted August 11, 2018 Hello, Doesn't exist because it cause several problems in the past, that's why it was removed, Any particular reason why you need to move it at the end? Regards! Link to comment Share on other sites More sharing options...
caroled01 Posted August 11, 2018 Author Share Posted August 11, 2018 Thank you for your answer. I have a problem with the module "Mondial Relay". It's a french carrier and it might display relay points when selected, but they are not displayed. And I read somewhere that if I move the code to the end it may work. That's why I wanted to try. But if it doesn't exist anymore I don't know what to do, I'll have to find another solution. Link to comment Share on other sites More sharing options...
Rolige Posted August 11, 2018 Share Posted August 11, 2018 Mondial Relay is already compatible with PS 1.7, just update it: https://addons.prestashop.com/es/punto-entrega-recogida-tienda/1752-mondial-relay.html Link to comment Share on other sites More sharing options...
caroled01 Posted August 11, 2018 Author Share Posted August 11, 2018 Thank you ! Well finally it was a problem of carrier creation. It works now ! Link to comment Share on other sites More sharing options...
polaije Posted February 23, 2020 Share Posted February 23, 2020 Hello, I have the same problem with the map that is not displayed. I verified that the carrier is correctly filled. Can you explain what was the problem with you ? Thanks in advance, Jean-Marie My site : https://pharmanovea.com Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 1, 2022 Share Posted February 1, 2022 On 11/8/2018 at 7:30 PM, Rolige dice: Hello, Doesn't exist because it cause several problems in the past, that's why it was removed, Any particular reason why you need to move it at the end? Regards! So Prestashop it's supposed to load all the javascript into the head of the page? Prestashop demo website seem to be loading the into the footer. Link to comment Share on other sites More sharing options...
El Patron Posted February 2, 2022 Share Posted February 2, 2022 PS by default moves .js to bottom, I only checked 1.7.6 and up, this is not longer an option. please provide your front office url so we can check also I recommend only using CCC of .js or .css if all pages have same ccc filename, you can check this by view source. If they are different by page type, i.e. product/index/category you should disable CCC for that file type as this improves performance. regardless, since 1.6 PS offered option to load .js bottom, in later releases it is no longer an option. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 3, 2022 Share Posted February 3, 2022 (edited) I see that most of the js are loaded into footer, while few on header. I think there's something wrong with jquery, because I ofter get js error into browser console related to it (for example when trying to add new modules). But also navigating on the website, for example dragging the product slider on home, or on product page clicking on product image opening the gallery. Edited March 17, 2022 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted February 3, 2022 Share Posted February 3, 2022 If a module is using depreceated addJS function it will add the javascript to bottom. With registerJavascript function the developer can choose bottom or top. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now