VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: nicoco59 on October 12, 2015, 11:19:42 AM

Title: Merge css / js for better performances
Post by: nicoco59 on October 12, 2015, 11:19:42 AM
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 ?
Title: Re: Merge css / js for better performances
Post by: Studio 42 on October 12, 2015, 21:30:48 PM
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