Support

Forums

Contact Me

Joomlacomment 4.0 jQuery optimization

joomla_cms

jocomment I did install yesterday evening the latest version of !JoomlaComment

!JoomlaComment is one of the first extensions for Joomla,that let you comment under articles.

The !JoomlaComment system can be installed on any joomla website within seconds! Make
your website more interactive!

Main Features:

  • ajax-based
  • captcha protection
  • akismet support
  • ubb code support
  • threathed/nested comments
  • multilanguage support
  • mail, website input
  • See more features here

Joomla support templates, depending on which templates you use

  • MTdefault-emotop, these templates MTxxxx use mootols 1.11
  • JQdefaut-emotop, these templates JQxxxx use Jquery
  • ..

You may behind the scene include another additional AJAX library in Joomla!® frontend, this lead to performance issues:

If !JoomlaComment use JQuery 1.1.4 and not the AJAX library of Joomla!, aka Mootools 1.11. Another huge JavaScript files that make my server busier!

Since any static files can be offloaded to another server to gain more speed. For example, any static images, JavaScript or CSS files can be moved to a different server for more speed.

In order to be able to offload this JavaScript library to Google code, you’ll have to do the following:

In the template you are using, for example in components/com_comment/joscomment/templates/JQdefault-emotop/index.html

Search for

{library}
<script type="text/javascript" src="components/com_comment/joscomment/jscripts/jquery-1.1.4.pack.js"></script>
<script>jQuery.noConflict();</script>
{/library}

and replace with

{library}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
<script>jQuery.noConflict();</script>
{/library}

Note that I use here the latest JQuery version (1.3.2) and not the default version of !joomlaComment (1.1.4), here is why

You might also like:
Alternate method to install Joomla/Drupal on Synology NAS
556 days ago
Alternate method to install Joomla/Drupal on Synology NAS
If you want more control, want to install Joomla yourself or want to install any other CMS, you ma
Running Joomla! on Synology NAS
556 days ago
Running Joomla! on Synology NAS
From small-and-medium business to individual users, Synology products offer a full range of choice
How to Solve a Problem with Joomla! jos_session
1226 days ago
How to Solve a Problem with Joomla! jos_session
I was not seeing this error since at least 3 years: DB function failed with error number 1016
Digital watermarking with PHP and GD2
1300 days ago
Digital watermarking with PHP and GD2
  Digital watermarking is the process of possibly irreversibly embedding information into
Watermarking your images with ImageMagick
1315 days ago
Watermarking your images with ImageMagick
Digital watermarking is the process of possibly irreversibly embedding information into a digital
Optimize Joomla! site
1331 days ago
Optimize Joomla! site
I did optimize a bit my Joomla! homepage in the last few days. This has been achieved with Enab
blog comments powered by Disqus

Donations

Thank You for supporting my work