News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Merge css / js for better performances

Started by nicoco59, October 12, 2015, 11:19:42 AM

Previous topic - Next topic

nicoco59

Hi,

I would like to know if it would be possible for future releases to merge all css / js in one file, that would improve the site's performance a lot, right now I have :

- 4 css
- 6 js

on my site, without counting the other files from Joomla.

There are some components out there to do it, but as far as I tested it just brought a lot of bugs on my shop..

I understand that the files can be separated for testing purposes, but why not merging them before releasing a new version of virtuemart ?

Studio 42

Hi nicoco59,
one of the problem to merge all by default is the possible script collision because VM use javascript library but module and some plugin too and it's easier to remove individual files if needed or only loading some in a template side.
You have some javascript merging tools, but it's hard to have a good result, because in Joomla you cannot specify javascript loading order.

But most of case merging CSS give right result.

Regards,
Patrick