By Sunny on Wednesday, 22 April 2015
Posted in General Issues
Replies 6
Likes 0
Views 660
Votes 0
Can you please explain the difference between the two versions of the scripts, are they having different functionality or are they same.

My site is loading easysocial-1.3.25.static.min.js and rather i would like to depend on easysocial-1.3.25.optimized.min.js as the size difference is big.

How can i let my site load 'optimized' version rather than 'static' version?

regards
Hello Sunny,

The "static" version is compiled and compressed as opposed to the "optimized" where it isn't compressed. You should opt for static rather than optimized is size is a concern Also, take a look at the blog post here, http://stackideas.com/blog/optimizing-the-delivery-of-javascripts-on-joomla . With gzip enabled, the static version could go down to 230kb
·
Thursday, 23 April 2015 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I checked the media folder for the uncompressed size difference. The size of optimized is just 50% of static:
easysocial-1.3.25.static.min.js : 1029kb
easysocial-1.3.25.optimized.min.js : 560kb

now as per blog if after compressing easysocial-1.3.25.static.min.js results in 230kb, then the size of easysocial-1.3.25.optimized.min.js after compression should reach 115kb.

Hope you get the direction of my question, further example in easy blog easyblog-3.9.22295.optimized.min.js is loading instead of static. ( 133kb v/s 419kb uncompressed)

As per my understanding of easyblog settings static is for development mode and optimized is for production mode. So same should be true for easysocial.

regards
Sunny
·
Thursday, 23 April 2015 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Any comments on the above post?

regards
·
Friday, 24 April 2015 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

Sorry I missed your post earlier, as I was too occupied with the development. Although the "optimized" is smaller, some scripts are loaded on the fly as opposed to static where it only loads a single file. In short, there would be multiple requests for script files if you run on optimized but static only has 1 single request which is more bandwidth savvy
·
Saturday, 25 April 2015 18:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for your explanation, now got it. So optimized is just selective loading of JS where as Static is loading all scripts.

regards
·
Monday, 27 April 2015 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Tuesday, 28 April 2015 01:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post