ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Performance problems

March 05, 2012 2:41am

Subscribe [3]
  • #1 / Mar 05, 2012 2:41am

    Ralph Bartsch

    31 posts

    Hi i am having performance problems on a website.

    http://www.bomans.se

    I get almost 2 seconds of white screen between each click, my client thinks it looks unprofessional. I have tried template caching, dynamic channel query caching and query disabling, still get up to 2 secs in between. Any more suggestions? Is there a way to have at least a background image/color instead of white ? (The website uses a red background thus making the white very noticeable).

    I have an account at enginehosting and will move it there to see if it is a problem with the swedish host, all suggestions are more then welcome.

    thanks in advance

    Ralph Bartsch

  • #2 / Mar 05, 2012 7:30am

    OrionesqueLtd

    23 posts

    Hi Ralph

    I’ve just run the site through ySlow, and there is a lot you could do to speed things up on that front (there are a lot of http calls, javascript files, no gZip etc etc), but that is probably not the root of your problem.

    Have you enabled template debugging, so that you can see how many queries the page is running and to spot where the bottlenecks are?

    Normally during development I’ll pop the global variables {elapsed_time} and {total_queries} somewhere in the footer, so we can watch out for any spike in processing.

    HTH

  • #3 / Mar 05, 2012 8:06am

    John St-Amand

    865 posts

    A real quick suggestion - try moving your javascripts to the bottom of the page rather than loading them in the head.  It may simply be the loading of the javascripts preceding the loading of the layout that gives the appearance of a slower page load.  It can make the world of a difference, in addition to minifying and combining local JS and CSS files.  The only JS I tend to load in the head is the Google Maps JS - for whatever reason its functionality seems to be dependent on loading much earlier in the page load.  But basically everything else I find can be moved.

  • #4 / Mar 05, 2012 8:13am

    John St-Amand

    865 posts

    Granted, if once you do move the JS to the footer, placing it right above the </body> tag, it still runs slowly, then there certainly may be other issues relating to the number of queries, etc. as the previous poster mentioned.

  • #5 / Mar 05, 2012 10:39am

    Bhashkar Yadav

    727 posts

    Hi Ralph,

    John is right. i looked at html source and found one included JS

    <a href="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js">http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js</a>

    it will be good practice to put such a file at server on which site is running.

  • #6 / Mar 05, 2012 10:45am

    Ralph Bartsch

    31 posts

    Thank You HTH, John St-Amand and Bhashkar,

    I am currently recreating the staging area to tryout the combining/minifying/moving.
    Thank you all for your input, i keep you posted with the results.

    Thanks again

    Ralph

  • #7 / Mar 05, 2012 10:49am

    OrionesqueLtd

    23 posts

    Out of interest, what sort of numbers are you getting on the elapsed time / number of SQL queries?

  • #8 / Mar 05, 2012 10:55am

    Ralph Bartsch

    31 posts

    Loading Time: Base Classes   0.0654
    Controller Execution Time ( Ee / Index )  2.2741
    Total Execution Time   2.3398

    QUERIES: 34

  • #9 / Mar 05, 2012 10:56am

    Ralph Bartsch

    31 posts

    Loading Time: Base Classes   0.0637
    Controller Execution Time ( Ee / Index )  1.2521
    Total Execution Time   1.3160

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases