VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Jerome on March 22, 2012, 06:21:56 AM

Title: Minify, Join and Compress VM 2.0.2 JavaScript.
Post by: Jerome on March 22, 2012, 06:21:56 AM
I am using Joomlart T3 Frame work for Joomla 2.5.3 and VM 2.0.2 and notice issues when Minify, Join and Compress (M,J,C) is turned on. I am using various Java script modules and notice that when (M,J,C) is enabled it causes issues with Virtuemart only. When ever I use the modules without being in a VM category everything works fine. (meaning selecting a joomla menu or article page) But when i select a VM category with the (M,J,C) turn on thats when the JS conflicts occur. Only when I select a VM category the JS conflicts occur. In the Joomlart T3 there is an option to exclude JS files from being (M,J,C). I found that the file of facebox.js is causing the conflict from using the (M,J,C) feature. Note that with Joomla, Joomlart T3 Frame work, and VM only installed the (M,J,C) feature doesn't work because VM Javascripts conflict with each other. Not sure why but I do know that when ever I exclude the facebox.js from being (M,J,C) everything else works. I tested on a remote and local server. On the local server I had to exclude the facebox.js in Joomlart's T3 Framework and disabled the "Use external google jquery library" option inside the configuration of VM. On the remote server I simply excluded he facebox.js in Joomlart's T3 Framework. Not sure if this is a real bug but throwing it out there for people that have issues with JS in VM. Does anyone have a better solution to use (M,J,C) with VM 2.0.2 javascripts?
Title: Re: Minify, Join and Compress VM 2.0.2 JavaScript.
Post by: revampnet on June 10, 2012, 23:15:28 PM
I am having the same issues.  Where did you completely exclude the facebox.js?  I saw the JS file and just renamed it, but that didn't do anything.  I un checked the VM JQuery Google thing.  Still nothing.

I am searching high and low for a solution and have not found a thing.  Did you have any luck?

Thanks.
Title: Re: Minify, Join and Compress VM 2.0.2 JavaScript.
Post by: Jerome on July 14, 2012, 16:49:57 PM
Are you using the T3 Framework? If so there is a box that states Optimize Exclude just put facebox.js in there.
Title: Re: Minify, Join and Compress VM 2.0.2 JavaScript.
Post by: tonytong on December 10, 2015, 09:34:09 AM
Quote from: Jerome on March 22, 2012, 06:21:56 AM
I am using Joomlart T3 Frame work for Joomla 2.5.3 and VM 2.0.2 and notice issues when Minify js (http://www.online-code.net/minify-js.html), Join and Compress css (http://www.online-code.net/minify-css.html) (M,J,C) is turned on. I am using various Java script modules and notice that when (M,J,C) is enabled it causes issues with Virtuemart only. When ever I use the modules without being in a VM category everything works fine. (meaning selecting a joomla menu or article page) But when i select a VM category with the (M,J,C) turn on thats when the JS conflicts occur. Only when I select a VM category the JS conflicts occur. In the Joomlart T3 there is an option to exclude JS files from being (M,J,C). I found that the file of facebox.js is causing the conflict from using the (M,J,C) feature. Note that with Joomla, Joomlart T3 Frame work, and VM only installed the (M,J,C) feature doesn't work because VM Javascripts conflict with each other. Not sure why but I do know that when ever I exclude the facebox.js from being (M,J,C) everything else works. I tested on a remote and local server. On the local server I had to exclude the facebox.js in Joomlart's T3 Framework and disabled the "Use external google jquery library" option inside the configuration of VM. On the remote server I simply excluded he facebox.js in Joomlart's T3 Framework. Not sure if this is a real bug but throwing it out there for people that have issues with JS in VM. Does anyone have a better solution to use (M,J,C) with VM 2.0.2 javascripts?

did you resolve this problem? i have the same issue now.
Title: Re: Minify, Join and Compress VM 2.0.2 JavaScript.
Post by: GJC Web Design on December 10, 2015, 10:35:45 AM
I have never seen this work successfully on a VM install.

VM as many ajaxified JS calls..  I assume this is why M,J,C breaks it

IMHO the time savings now days on a good server with the fast delivery speeds are negligible

The real savings would be throwing away a massively over coded T3 framework and use a simple fast template