en Jump to content
  • 0
caroled01

Site very slow. How to Defer parsing of Javascript ?

Question

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.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 ?

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More