WordPress.org

Ready to get started?Download WordPress

Forums

EMC2 Popup Disclaimer
improve the speed/loading (4 posts)

  1. madri2
    Member
    Posted 1 year ago #

    Hi,

    After watching the code, i see that the js,css files are loaded at each page view, even if the user has already accepted the disclaimer.

    I suggest that in the beginning of the method :
    function emc2pdc_disclaimer( $atts, $force=NULL, $id=NULL) {

    to check if $_COOKIE['emc2pdc'] == "agreed" and in this case, exit the method to not load all the files for nothing, and to not display the disclaimer on the source code if it's not needed.

    thanks

    http://wordpress.org/extend/plugins/emc2-popup-disclaimer/

  2. Eric McNiece
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome... adding to queue. Cheers!

  3. madri2
    Member
    Posted 1 year ago #

    do you have any news about when it will be released?

    [No bumping, thank you.]

  4. Eric McNiece
    Member
    Plugin Author

    Posted 1 year ago #

    This weekend (Sunday Sept 30 2012)

    Thanks for your patience :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.