Forums

[resolved] [Plugin: WP-PostRatings] Wp-post-ratings loads it's JS/CSS even on pages with no ratings (3 posts)

  1. TransPersonal
    Member
    Posted 2 years ago #

    The CSS and embedded Javascript for this plugin loads on the homepage even though I have no ratings on the homepage. I only have them on the archive and post pages. So it would be great if I can somehow get the JS/CSS post-ratings files to load on those pages alone. Now these unessecary loads are slowing my site down slighly. Can this be done?

    BTW the same goes for Lester's other plugins (page-navi and post-views) which are otherwise fantastic.

  2. Lester Chan
    Member
    Posted 2 years ago #

    There is no way whether the script will know whether there is ratings on that page or not and hence it is the best way to load it globally. Do note that I have to cater for a general audience and not any particular target audience.

  3. TransPersonal
    Member
    Posted 2 years ago #

    Okay, thanks GamerZ for letting me know.

Topic Closed

This topic has been closed to new replies.

About this Topic