[Plugin: EMC2 Popup Disclaimer] improve the speed/loading
-
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
https://www.ads-software.com/extend/plugins/emc2-popup-disclaimer/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: EMC2 Popup Disclaimer] improve the speed/loading’ is closed to new replies.