Version 1.5: jssupercache.zip 51.31KB 12 downloads
Requires PrestaShop version 1.6
This module should NOT be run in production system, i.e. you can install on any running shop but you should not disable the built in simulator. When simulator is enable the logic only executes for that IP. It's all explained in the module tabs.
What was reason for writing jsSuperCache?
When we look at existing performance features of PrestaShop we can see natives builds one CCC'ed .js file per page type. When we then navigate across pages a 'different' CCC'ed .js file is served, i.e. it must be transferred to browser. A typical main page landing, product view, add to cart, checkout process each 'will' have a different CCC'ed .js file. You get the idea.
jsSuperCache was built do learn what .js files your shop uses across page calls and create one CCC .js file (super cache). It does perfectly, I know because I test so nobody else has to.
Testing shows that the single cached CCC'ed .js file significantly speeds up 'above the fold' page render, it however breaks .js as we do not have variables intied for .js called on some pages, and not others. Anyway, we know it does not take a lot to break current .js usage. lol
The great news? PrestaShop 1.7 is planned to have this built into native because they can direct developers and set best practice. So this module is for PrestaNerds who want to experience at least in test what one CCC .js file will be like.
Oh, if some .js genius can tell me how to make this work in production I will pay them a handsome reward...I am only half genius.
Happy day, el