• Hello, I’ve problems with the page –> <?php wp_head(); ?> <!– Php-time: <?php echo xdebug_time_index(), “\n”; ?> –>”>www.ski-o.com, it uses a lot of time to load pages that is not cached yet.

    After a lot of debuging, trying different tools and plugins I found to things that uses a lot of time. The first was the RSS widgets, the other is the loading of wp_head().

    I’ve used xdebug like this:

    <!-- Php-time: <?php echo xdebug_time_index(), "\n"; ?> -->
    <?php wp_head(); ?>
    <!-- Php-time: <?php echo xdebug_time_index(), "\n"; ?> -->

    This outputs the following:

    <!-- Php-time: 0.394505023956
    
     -->
    
    <link rel="alternate" type="application/rss+xml" title="Norsk Skiorientering &raquo; Kartintensiv i Falun kommentarstr?m" href="https://www.ski-o.com/2009/10/kartintensiv-i-falun/feed/" />
    
    <script type='text/javascript' src='https://www.ski-o.com/wp-includes/js/comment-reply.js?ver=20090102'></script>
    
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.ski-o.com/xmlrpc.php?rsd" />
    
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.ski-o.com/wp-includes/wlwmanifest.xml" /> 
    
    <link rel='index' title='Norsk Skiorientering' href='https://www.ski-o.com' />
    
    <link rel='start' title='Nye ski-o.com!' href='https://www.ski-o.com/2008/01/nye-ski-ocom/' />
    
    <link rel='prev' title='F?r penger fra ukjent stiftelse' href='https://www.ski-o.com/2009/10/ski-o-mottar-penger-fra-ukjent-stiftelse/' />
    
    <link rel='next' title='P? sykkel med landslaget' href='https://www.ski-o.com/2009/10/pa-sykkel-med-landslaget/' />
    
    <meta name="generator" content="WordPress 2.8.5" />
    
    <style type='text/css'>
    
    	body { width: 1024px; }
    
    	#sidebar { width: 180px; }
    
    	#sidebar .side-widget { width: 160px; }
    
    	#secondsidebar { width: 180px; }
    
    	#secondsidebar .side-widget { width: 160px; }
    
    	#leftcontent, #twocol, #threecol, #threecol2, .commentlist { width: 600px; }
    
    	#leftcontent img { max-width: 600px; }
    
    	#title { float: left; }
    
    	#description { clear: left; float: left; }
    
    	#headerad { float: right; margin: 26px 5px 0 0; }
    
    </style>
    
    	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
    
    <!-- Php-time: 10.4418990612
    
     -->

    So as you can see wp-head() use about ten seconds to load. But why?

    I can’t really understand what’s using so much time. It looks like it’s theme specific. (I’m using a slightly modified version of the Magazine Basic theme.)

    Can it be the CSS that’s generated or the script?

    Please point me in the right direction if you have any tips!

  • The topic ‘wp_head() really slow’ is closed to new replies.