Jump to content

Site very slow : how to defer parsing javascript ?


Recommended Posts

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.

Edited by caroled01 (see edit history)
Link to comment
Share on other sites

defer refers to .js attribute.  aysnc/defer/none

when moudle (appl) registers it's .js within PS it can optionally specificy .js attribute.

this is new in 1.7....'asset manager'...via webpack/etc

developers need to write their .js to support defer and register accordingly, maybe in future we see PS  make this a requriement as that is about the only way to get developers to adopt best practice.

====

for slow, most often during build dev disablels smarty cache so updates are reflected without clearing cacahe...  (see performance page).

 

happy selling el

 

Edited by El Patron
spelling (see edit history)
Link to comment
Share on other sites

On 12/9/2018 at 5:21 AM, caroled01 said:

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.

 

I am seriously thinking that is your Internet Speed, because your site is super ultra fast!! No jokes, it loaded all pages very quickly for me (I am from South America).

Edited by Daniuz (see edit history)
Link to comment
Share on other sites

Thank you very much for all your answers.

The URL of my 1.7 site is www.grispastel.fr/grispastel_1.7.4.2

It's nice to know you find it's loading fast. When I test with google PageSpeed Insights the results are very bad, so I don't know what to think.

My actual site in 1.6 (www.grispastel.fr) gives good results with google page speed.

 

Link to comment
Share on other sites

It's fully loaded in 7 seconds.

Using "https://gtmetrix.com/reports/www.grispastel.fr/4KkZaktr" I can see you have 301 and 302 move and redirects for http than is taking the initila wait of 1+ second for the site to start loading https://.

You should remove those move/redirect to fix that. You can do it in PrestaShop backend or through a .htaccess file.

To further improve the caching of your images, you can put your site on Cloudflare.

Link to comment
Share on other sites

  • 4 years later...

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...