WordPress.org

Forums

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

  1. madri2
    Member
    Posted 2 years 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 2 years ago #

    Awesome... adding to queue. Cheers!

  3. madri2
    Member
    Posted 2 years ago #

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

    [No bumping, thank you.]

  4. Eric McNiece
    Member
    Plugin Author

    Posted 2 years ago #

    This weekend (Sunday Sept 30 2012)

    Thanks for your patience :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EMC2 Popup Disclaimer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.