caroled01 Posted September 12, 2018 Share Posted September 12, 2018 Hello, I have install version 1.7.4.2 on which there is a very long loading time.. The analyze on GTmetrix shows that : "Defer parsing of Javascript". But I can't find anywhere how to fix it. Is someone have an idea ? This is a printscreen : http://prntscr.com/ktet6h Thank you very much for your help. Link to comment Share on other sites More sharing options...
Rolige Posted September 12, 2018 Share Posted September 12, 2018 In the Advanced parameters > Performance, use try this parameters: Template compilation: Recompile templates if the files have been updated Cache: Yes Debug mode: No Smart cache for CSS: Yes Smart cache for JavaScript: Yes Apache optimization: Yes Use cache: in case you are in a VPS and can use some kind of php cache I must say that, I have not seen yet a PS 1.7 working fast in a shared hosting, regardless of the configuration you have. Link to comment Share on other sites More sharing options...
caroled01 Posted September 14, 2018 Author Share Posted September 14, 2018 Thank you for your answer. I tried all this parameters, but not the last one. It's always the same. About Memcached I have a question : I use a VPS on which Memcached is installed. It seems I have to open a port, that's what I did. But I don't know if I have to open it for input or for output. So I tried the 2 cases but then I can't select any system of cache in prestashop. Maybe you can help me with that ? Thank you very much by advance ! Another question, I read that if we open a port on our server it may have security problems. Is it true ? Link to comment Share on other sites More sharing options...
El Patron Posted September 14, 2018 Share Posted September 14, 2018 this is because programs registering their .js scripts do not specific defer or async. we hope developers in the future use this option.... loading bottom makes no difference, i.e. google wants the defer attribute. Link to comment Share on other sites More sharing options...
arhitekt Posted February 8, 2019 Share Posted February 8, 2019 (edited) On 9/12/2018 at 3:38 PM, Rolige said: In the Advanced parameters > Performance, use try this parameters: Template compilation: Recompile templates if the files have been updated Cache: Yes Debug mode: No Smart cache for CSS: Yes Smart cache for JavaScript: Yes Apache optimization: Yes Use cache: in case you are in a VPS and can use some kind of php cache I must say that, I have not seen yet a PS 1.7 working fast in a shared hosting, regardless of the configuration you have. Then you havent seen the websites i build and optimize: gtmetrix score 85 / 80 with test server in London and my hosting in Slovenia. the website loads under 1 second - and it's on shared hosting, the key is just proper optimisation and template coding. And we have over 300 products added with thousands of images. Edited February 8, 2019 by arhitekt (see edit history) 1 Link to comment Share on other sites More sharing options...
goldies Posted March 28, 2020 Share Posted March 28, 2020 On 2/8/2019 at 8:13 PM, arhitekt said: Then you havent seen the websites i build and optimize: gtmetrix score 85 / 80 with test server in London and my hosting in Slovenia. the website loads under 1 second - and it's on shared hosting, the key is just proper optimisation and template coding. And we have over 300 products added with thousands of images. I believe you if you use default prestashop theme, if not... My site on shared hosting load with 0,6 sec with default prestashop theme. Regards From Serbia 1 Link to comment Share on other sites More sharing options...
El Patron Posted December 21, 2022 Share Posted December 21, 2022 Howdy community. I originally wrote the following module for 1.5, move .js bottom but it also included defer/async. When working performance projectI decided to update JavaPro for 1.7. JavaScript Render Blocking SOLVED! Module JavaPro Advanced JavaScript Performance Manager for PrestaShop Here is forum posting of module Here is our shop listing of module 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