Support » Plugin: Autoptimize » Exclude LazyLoad Script from Homepage

  • Resolved David Elstob


    Hi Frank,

    I notied this previous thread for excluding Lazy-Loading, but tried the snippet and can’t get it to work. However, it’s for the homepage so is it okay to put the full URL in, because /index.php isn’t working for me?

    function pst_lazyload() {
    	if ( strpos( $_SERVER['REQUEST_URI'], '/index.php') !== false ) {
    		return false;
    	} else {
    		return true;

    Thanks for your support.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude LazyLoad Script from Homepage’ is closed to new replies.