Jump to content

Site very slow. How to Defer parsing of Javascript ?


Recommended Posts

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

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

  • 4 months later...
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 by arhitekt (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
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

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...