WordPress.org

Ready to get started?Download WordPress

Forums

35 second to load my home page (6 posts)

  1. dimigra
    Member
    Posted 6 years ago #

    Hi,

    since the last month I've encountered a problem with my web site based on wordpress. Without any apparently reason the home page take very long time to load, about 35 seconds.

    I've tried to deactivate all the plug-ins, to inspect the code, but nothing, I didn't understand the reason of this problem.

    Any of you had this kind of problem before and got the solution ?

    Thanks

    http://www.ziguline.com

  2. whistler2020
    Member
    Posted 6 years ago #

    not sure if this is the problem but the following is not found...

    http://www.ziguline.com/wp-content/plugins/php_speedy_wp/cache/calendar.css

    have you tried disabling:

    http://pagead2.googlesyndication.com/pagead/show_ads.js

    could be that both are causing the problem

  3. codestyling
    Member
    Posted 6 years ago #

    Hi, hard to say whats the realy reason.
    The main request (index.php) takes a lot time and seems not be delivered step by step but only at once!
    Did you install any plugin, that modifies the complete page content prior to delivery ?
    This would keep the page as long unsend as the complete page code are build and at once parsed.
    Also i found, that you work with session cookie. may be its used to track user and write back to database.
    If there ist new code doing so, please be sure that writing to database will be done after all content been generated not in front of.
    Mostly database need a lot of time for writing but are optimized for reading. So try to place monitoring at the end of footer, so the browser can start rendering content sent until here.

    BTW: the calendar.css been reported by 404 Not found.

  4. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    You have many html errors which can add to loading time. I suggest you validate your code at http://validator.w3.org/

    In addition, the images you are loading like http://hstus.tradedoubler.com/file/62097/january/basic_300x250.gif.gif are taking a long time to load. That is an inherent problem with shared advertising resources. I have dropped one source (linksys) completely because of slow loading. I think that one fix (not a solution) is to make sure your slow ads load last. Then your reader can at least start looking at your site.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    When you have slow-to-load images, make sure that you specify the width and height of those images. This allows the browser to render the rest of the page, leaving space for that image to load into later.

  6. dimigra
    Member
    Posted 6 years ago #

    Hi everyboy!!

    thank for your precious support, I can tell you that after a series of tests I see that the problem is in the loops,

    I use a specific code to query my DB in order to show specific post in the future:

    the following is the first one:

    <?php query_posts('showposts=-1&order=ASC&cat=-14,-10'); ?>
    <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
    <?php static $ctr = 0;
    if ($ctr == "3") { break; }
    else { ?>
    
    <?php  $mylimit=60*60*24*7; //secondi * minuti * ore [* giorni]
     if ((get_the_time('U') <  (current_time(timestamp) - (get_settings('gmt_offset') * 3600) + $mylimit)) && (get_the_time('U') > current_time(timestamp)) ) {?>

    the following is the second:

    <?php query_posts('showposts=-1&offset=2&order=ASC&limit=5&cat=-14,-10') ; ?>
    <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
    
    <?php static $ctr = 0;
    if ($ctr == "7") { break; }
    else { ?>
    
    <?php  $mylimit=60*60*24*7; //secondi * minuti * ore [* giorni]
     if ((get_the_time('U') <  (current_time(timestamp) - (get_settings('gmt_offset') * 3600) + $mylimit)) && (get_the_time('U') > current_time(timestamp)+48*3600 ) ) {?>

Topic Closed

This topic has been closed to new replies.

About this Topic