0
Welcome Guest! Login
0 items Join Now

YSlow and compressing all your .js files into one?

  • YSlow and compressing all your .js files into one?

    Posted 16 years 8 months ago
    • Hey everyone, just read up on YSlow, a yahoo firebug extension which is meant to help analyse website performance.

      Here's what you need to use it:
      The first thing it told me after giving my site a 31(F) rating, which is pretty bad btw, was to reduce the number of http requests. It seems my site loads 15 external Javascript and an additional 13 external stylesheets. Comes with installing modules and so on.

      Now, I'm wondering if the javascript code of the rokmoomenu, rokintroscroller and so on could be merged into one .js file, same goes for the .css files. Does anyone have any experience at all with doing this? Also, is there a reason why the joomla JS files aren't minified?

      Additionally, setting up my server via .htaccess to gzip all the js and css files already improved the rating to 45, which sadly is still a F.
  • Re: YSlow and compressing all your .js files into one?

    Posted 16 years 8 months ago
    • The CSS is probably the easiest as you can add them all together in 1 file.
    • James Spencer / Developer & Support / Hull, UK
  • Re: YSlow and compressing all your .js files into one?

    Posted 16 years 8 months ago
    • will test that tomorrow...

      an additional advice it gives is to move the javascripts to the bottom of the code, to enable the browser to render the page progressively. Seems that browsers wait for a script file to be fully loaded before rendering the site to avoid having to redraw the site. Do any rockettheme scripts use documen.write, which would prevent moving them to the bottom?

Time to create page: 0.045 seconds