• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 27.02.19, 11:46
  • Opened by: Karim BOUDALI
  • Closed by: Marek
  • Closed on: 30.03.19, 19:49
  • Reason: Closed
  • Comment: Glad to help!

Ticket #13831 - Defer parsing of JavaScript

Hi,

is there a way to improve “Defer parsing of JavaScript”, I have a very low score on GTmetrix.
My outsourcing has made improvements but not on this.

Is there perhaps a prestashop module that can help?
thank you

SCORE GTMETRIX F=39
770.0KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

https://www.edehillerin.fr/themes/alysum/assets/cache/bottom-6ba0b696.js (762.8KiB)
https://www.edehillerin.fr/en/ (7.2KiB of inline JavaScript)

Comments

Marek 27 Feb 2019, 11:58

In the latest update we have added “async” parameter for modules scripts http://take.ms/L23t0

Karim BOUDALI 27 Feb 2019, 12:06

I did the update, but now I have another problem, the one you have set me: Basket problem.

When you add a product in your shopping cart it displays in the basket ajax but when you browse on another product it disappears.

SEE RESOLVED TICKET:
Ticket # 13810 - PROBLEM MIGRATION
User: Marek (marek)

Comment: The issue has been fixed. Please check it out

Karim BOUDALI 27 Feb 2019, 12:09

my slider is gone (out) doesn’t exist ??????

Marek 27 Feb 2019, 12:11

Just select it in your Page builder.
The problem from another ticket is solved

Karim BOUDALI 27 Feb 2019, 12:19

OK thank you
please I need translate this now (see screenshot) doesn’t exist in translation.

where is the file please ?

Karim BOUDALI 27 Feb 2019, 12:23

another problem,

in the product sheet when you change attribut, the price disappears

example : https://www.edehillerin.fr/fr/casseroles/346-898-casserole-affinity-inox.html#/173-choix_diametre_cm-16

Karim BOUDALI 27 Feb 2019, 12:31

translate is ok, just this please :

another problem,

in the product sheet when you change attribut, the price disappears

example : https://www.edehillerin.fr/fr/casseroles/346-898-casserole-affinity-inox.html#/173-choix_diametre_cm-16

Marek 28 Feb 2019, 10:53

It works for me correctly http://take.ms/xTXhv

Karim BOUDALI 28 Feb 2019, 10:55

No i activate the module
see now, doesn’t work

Marek 28 Feb 2019, 10:56

Have you tested out that module with default prestashop theme? I’m asking to be sure the use is with the theme

Karim BOUDALI 28 Feb 2019, 10:58

the module works perfectly by default.
It’s with the theme that it does not work.

I updated the theme alysum and it does not work anymore

Karim BOUDALI 28 Feb 2019, 11:29

Can you fix the problem please ?

Marek 28 Feb 2019, 11:47

Please be patient, you are not only one, we have a lot of customer’s requests

Karim BOUDALI 28 Feb 2019, 11:48

I understand, sorry.

Marek 28 Feb 2019, 11:49

no problem

Karim BOUDALI 28 Feb 2019, 12:03

How did you please, that I will not bother you anymore when I will update your theme?
Thank you very much, you are an active developer

Marek 28 Feb 2019, 12:04

Wait a moment I’ll finish with this issue

Marek 28 Feb 2019, 12:06

Ok, that issue is fixed now. Please check it out

Karim BOUDALI 28 Feb 2019, 16:21

How did you please, that I will not bother you anymore when I will update your theme?
Thank you very much, you are an active developer

Marek 01 Mar 2019, 11:25

Just fixed one of the theme’s file.
The fix will be available in the next update

Karim BOUDALI 01 Mar 2019, 11:28

it should also for the next update does not change the translations of the theme because I had to resume some translations.

also the command async not very much the problem of defer parsing

Thank you very much

Marek 01 Mar 2019, 11:30

you can change async to defer if you want

Karim BOUDALI 01 Mar 2019, 11:31

How to do ?

Marek 01 Mar 2019, 11:39

Here is an example http://take.ms/j3vV2

Karim BOUDALI 01 Mar 2019, 11:45

thank you but change all name “async” by “defer” ?

Marek 01 Mar 2019, 11:47

You have to edit each module where you want to change that