The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

GD Star Rating
load without wp_head(); (1 post)

  1. bhbilbao
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.