• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 24.03.19, 19:57
  • Opened by: Piotr Pluta
  • Closed by: Marek
  • Closed on: 01.05.19, 15:41
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14044 - Prestashop CCC problems.

I have turn on the ccc option for javascript but still individual js files from modules are loaded.

This happens only on the alysum template happens.

And the modified file is not loaded asynchonically

Comments

Marek 25 Mar 2019, 10:33

Yes, loading js file asynchronously is better for website performance than use one big file. As for no “async” parameter for main file, yes, we know about that, but we can’t control that, it’s somewhere in prestashop core

Piotr Pluta 25 Mar 2019, 10:36

ok, but are you going to improve that only one js file is loaded, how is ccc enabled? How do I change to classic template, only one file is loaded

Marek 25 Mar 2019, 10:37

That is not a problem of the theme. Prestashop platform do that

Piotr Pluta 25 Mar 2019, 10:41

I do not think we understand each other. On theme default classic is only one file. On theme alysum is many js files

Marek 25 Mar 2019, 10:42

Alysum also has only one file. All files what loaded asynchronously are from modules

Piotr Pluta 25 Mar 2019, 10:45

ok but why in classic theme are not loading js from modules separately ?

Marek 25 Mar 2019, 10:48

Because only modules what comes with Alysum has async parameter. A lot of people asked as to add it

Piotr Pluta 25 Mar 2019, 10:50

so if i turn on async for js from modules it will be only 1 js file ?
Could you tell me how i can turn off async ?

Marek 25 Mar 2019, 12:29

There is no such option in Back office
Here is an example how to disable it for one module http://take.ms/1yXMj

You have to remove the parameter in those modules what you are using

, 'attributes' => 'async'