Support » Plugins and Hacks » load without wp_head();

load without wp_head();

  • Hi MillanN,

    as i known we need to use wp_head(); on top to load css and scripts from wordpress. But i never use wp_head function because it loads all the scripts in all pages and not in the pages we need it.

    For example, for frontpage, home, and other static pages i dont use GD Star Rating. For that I placed the scripts manually in <head></head> depending the page.

    Using Firebug PageSpeed(Network) I see GdStar Rating takes over 6-8seconds on render a simple starts,.. if we have about 10 stars rating, the page will take easily about 20 seconds to finish the render. This bad for SEO!

    ¿¿What files are needed to correct use GDStarRating in specific pages???

    <!-- css-->
    <link rel='stylesheet' id='gdsr_style_main-css'  href='http://localhost/xxx.me/wp-content/plugins/gd-star-rating/css/gdsr.css.php?t=1385967294xxxxxxxxxx;ver=1.9.22' type='text/css' media='all' />
    <link rel='stylesheet' id='gdsr_style_xtra-css'  href='http://localhost/xxx.me/wp-content/gd-star-rating/css/rating.css?ver=1.9.22' type='text/css' media='all' />
    <!-- scrips -->
    <script type='text/javascript' src='http://localhost/xxx.me/wp-content/plugins/gd-star-rating/js/gdsr.js?ver=1.9.22'></script>

    ¿ is there any problem using this method??
    ¿can I place gdsr.js in bottom before </body>???

    Thanks in advance.


  • The topic ‘load without wp_head();’ is closed to new replies.