By neg0 on Thursday, 02 February 2017
Posted in Technical Issues
Likes 0
Views 513
Votes 0
Hi,

I've just bought the new version of Komento. I was on a 2.0.8 with 144kb of javascript loaded (including "/media/com_komento/scripts/komento-2.0.8.static.min.js" 138kb alone).
With Komento i load 1.1Mo of javascript. The biggest file is "media/com_komento/scripts/vendors/jquery.komento.js" 279Kb. This file alone is nearly twice as heavy as all the Js loaded by the older Komento.

I'm surprised because i wanted the version 3 for the "Performance Enhancements" you described here https://stackideas.com/blog/komento-3-0-stable-release
You are actually looking at the wrong file. The file jquery.komento.js is never rendered on the page. We only include it with the source in cases where people want to modify the scripts and recompile them again.

Komento only loads the following script files in production mode

site-3.0.3.min.js (with jquery)
site-3.0.3-basic.min.js (without jquery)
·
Thursday, 02 February 2017 02:12
·
0 Likes
·
0 Votes
·
0 Comments
·
As for comparisons with Komento 2.x,

Komento 2.x (komento-2.0.12.static.min.js) = 473kb
Komento 3.x with jQuery (site-3.0.3.min.js) = 378kb
Komento 3.x without jQuery (site-3.0.3-basic.min.js) = 287kb
·
Thursday, 02 February 2017 02:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thank you for your answer. I've added a screen of the js loaded by komento. I'm not loading site-3.0.3.min.js nor site-3.0.3-basic.min.js.
·
Thursday, 02 February 2017 02:26
·
0 Likes
·
0 Votes
·
0 Comments
·
This is because you have configured Komento to be on development mode You need to switch to production mode under Settings > system
·
Thursday, 02 February 2017 02:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Exactly
I'm now loading the js site-3.0.3.min.js (378kb).Thank you.

One last question, when i disable the jquery library from Komento i get "TypeError: Cannot read property 'slice' of undefined" on site-3.0.3-basic.min.js line 306. (I already load jquery on my website).

Thanks
·
Thursday, 02 February 2017 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, there is probably conflicts because the jQuery version on your site is different than what is required from Komento. I am afraid you need to render the jQuery from Komento but don't worry, as long as you add these into your .htaccess files, it's still going to be smaller than 100kb


AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
·
Thursday, 02 February 2017 20:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your help !
·
Thursday, 02 February 2017 21:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 02 February 2017 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post