WordPress.org

Ready to get started?Download WordPress

Forums

T(-) Countdown
[resolved] 9 CSS files loaded on all pages (8 posts)

  1. Spinal
    Member
    Posted 2 years ago #

    (Using T(-) countdown version 2.2.1)

    When this plugin is used on a website, 9 CSS files are loaded on ALL pages, despite the plugin not being used on them.
    This means every visitor has to make 9 HTTP requests and download 25 KB of CSS (this is a guess based on the zipped files). Do this times a million pageviews a month and it really adds up.
    Wouldn't it be possible for future versions of the plugin to only load the CSS when the plugin is active (i.e. do an enqueue_style if the shortcode or widget is displayed or something) and ONLY load the CSS that is actually being used and NOT the 8 other files?

    http://wordpress.org/extend/plugins/jquery-t-countdown-widget/

  2. WebEndev
    Member
    Posted 2 years ago #

    +1 Agree
    Very nice plugin!

  3. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    I totally agree... still looking for a solution. Any ideas are warmly welcomed.

  4. Spinal
    Member
    Posted 2 years ago #

    Thanks for the explanation :) I had no idea it was this complicated to do this.

  5. ireddy
    Member
    Posted 2 years ago #

    If one mis-types the name of countdown style, it gets added to the CSS file list, even though they do not exist. For example, I typed c-3po in upper case, now it is in the list and never found: GET http://nortonrally.com/wordpress/wp-content/plugins/jquery-t-countdown-widget/css/C-3PO/style.css?ver=1.1 404 (Not Found)

    How can the extras be deleted?

  6. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    We will release an update today that will purge any un-used/mis-typed styles. This is still a temporary solution until we get the multiple style issue truly resolved.

  7. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    Alright alright! Version 2.2.2 is out and fixes the issue by only enqueueing the styles that are used, on the pages they are used. Please let us know if everything works as it should in the Compatibility section of the plugin's page.

  8. ireddy
    Member
    Posted 2 years ago #

    Awesome, thanks! Unused styles gone, and loads only on relevant pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic