WordPress.org

Ready to get started?Download WordPress

Forums

Improved Simpler CSS
an improvement to prevent PHP warnings and potentially speed page loa (2 posts)

  1. James Revillini
    Member
    Posted 2 years ago #

    this change does two things:
    1) writes the css saved to a file in the plugin directory
    2) enqueues it using wordpress template api instead of always adding it to the head

    theoretically, it should improve load times since browserts can do their own internal caching of the css, and also plugins like Minify will be able to work their magic on the css code if employed.

    as a side benefit, it will stop the generation of PHP warning messages like this:
    PHP Warning: Cannot modify header information - headers already sent by (output started at E:\xxx\wp-content\plugins\imporved-simpler-css\improved-simpler-css.php:245) in E:\xxx\wp-includes\pluggable.php on line 866

    http://wordpress.org/extend/plugins/imporved-simpler-css/

  2. enej
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the Suggestions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic