Showing posts with label joomla. Show all posts
Showing posts with label joomla. Show all posts

Saturday, January 24, 2009

Using SmartOptimizer with Joomla

Hey,

If you are having the Joomla site, and especially community driven then the thing you most care about is performance of site. But As far as I can think all joomla site performs poor.

I started a website with JomSocial... its a really good product. My target was to boost performance, and sharing my experience here.

Issues :
  1. JomSocial is on my frontpage - it have a lot of JS and CSS files to display
  2. My Template also have 3-4 CSS and 2-3 JS
  3. Then few other CSS and JS due to mod_signallogin, some other handy modules ...
Before optimization my grading of site was 33 in YSlow.
So I used smartoptimizer -
It can do a lot of things - Minify, GZip, CSS Embeddeing, Caching, Concatenation and many more.

I used in a new style, which was not mentioned anywhere, Why ?
  1. Firstly I installed as per adviced all over the net, But it reduced my performance as It accepts all type of files (php, image, ad html) ... so for these files smartoptimizer wastes my CPU power.
  2. Second issue was - I want to skip selected JS/CSS/Images ...
  3. I want to improve the performance of FrontEnd, but I do not want to impact my backend.

My Style of Implementation
  1. My Site is installed at http://mydomain.com
  2. I created a subdomain http://s.mydomain.com
  3. I created this structure at my subdomain -
    ---- .htaccess (Provided by smartoptimize)
    ---- index.html (A blank file)
    ---- SmartOptimizer Folder
    ---- x (A Folder with permission 750)
    |------x ( A linux style soft link to my main site folder, internal path)
  4. This is all for smart optimizer
Now I created a new renderer for head rendering, By new renderer, I achieved these things.
  1. Rewrite all JS/CSS links as http://s.mydomain.com/.... path-to-js
  2. Concat all JS files, http://s.mydomain.com/....path-to-folder/file1.js,file2.js,file3.js etc
  3. Concat all CSS files, http://s.mydomain.com/....path-to-folder/file1.css,file2.css,file3.css
  4. I didn't changed the functionality for CutomTags, So all the scripts added by CustomTag are still delivered from normal-site.
Benefits with my strategy -
  1. By new rendering, I can concat fils without modifying code.
  2. Most of the java-script required for no-conflicts are added thorugh custom-tags, so I don't mess-up those files, which must not be.
  3. I have shifted all my static content to subdomain, It helps my site speed at browser-side.
    (rendering in browser is faster, check yslow documentation)
  4. The optimization can be shifted to some other server, as its on subdomain :-)
(My site on YSlow is now at 78)
not better than this beacuse I server a lot of images on my homepage.

If you want to apply this appoach on your site, let me know. I will provided relavent code and help to set it up.
If you want me to help you in your site performance, conatct me.
- Shyam

Tuesday, December 30, 2008

JomSocial + AlphaUserPoint + MosetTree

**** Updated version 0.91
A great plugin to integrate MosetTree with JomSocial and AlphaUserPoint.

Features :
  1. Add activity streams of MosetTree into JomSocial
  2. Add points for activities in MosetTree into JomSocial
  3. Rules for Alpha User Point.
  4. Works in 3 modes : ( Only JS / Only AUP / JS + AUP)
  5. 18 Predefined Rules for Alpha User Points.
Price :
  1. The plugin is NOT commercial
  2. You can donate me 5.00 USD if you are willing to.
  3. Donation should be paid to web.potli[at]gmail.com via paypal only.
  4. The software is in Beta stage, and it is provided as it is. No claims can be made.

Support : (http://code.google.com/p/jsappsmtree)
  1. Complete source code will be provided and you are free to customize it to your needs.
  2. Installation/Customization facility available. ( 5$ per domain)
  3. Support is available over the forum only http://code.google.com/p/jsappsmtree
  4. Documentation is also available at above project page.
  5. No DEMO available as I dont have license for MTree and JomSocial.

Saturday, December 20, 2008

Moset Tree Custom Field Type for Files

Hey,
Don't you know the worst thing about Moset Tree ... custom field for File Types. The files attached are stored in database ... not in file system.

So I am developing a custom-field-type for storing attached files over file-system. It will be very soon release beta ... and aboslutely FREE ...

Any suggestion .... let me know by commenting here.

Monday, December 15, 2008

Jom Social Application for Moset Tree

I have developed a jom-social application for moset tree. This plugin will list last x-number of listings created by user on their jom-social profile. The number of listing can be configured in backend.

Its very initial version.
|Sample Demo |

*** Update ***
Updated a bug for Application level display:
Download new version of plugin - 0.91

Report bug.