Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter richardmorse441

    (@richardmorse441)

    Thanks a lot, Saumya. Now, this issue has been resolved..

    But the strange thing that happened is after resolving this issue Google Page Speed score decreased 🙁 Earlier for Desktop, it was 92 or 93 now it’s 88 to 90. Any idea?

    Keep up the good work guys.

    Thread Starter richardmorse441

    (@richardmorse441)

    Hello @optimizingmatters and @isaumya,

    Thanks for replying.

    I found this code in my functions.php file:

    
    // futta autoptimize
    function pushAOFiles($in) {
      $pushType = substr($in,strrpos($in,".")+1) === "js" ? "script" : "style";
      header('Link: <'.$in.'>; rel=preload; as='.$pushType,false);
      return $in;
    }
    function pushJQuery($in) {
    	if (strpos($in,"js/jquery/jquery.js")!==false) {
    	  	$jQurl=includes_url("js/jquery/jquery.js");
    	    header('link: <'.$jQurl.'>; rel=preload; as=script',false);
    	}
    }
    //add_filter('autoptimize_filter_js_exclude','pushJQuery');
    add_filter('autoptimize_filter_cache_getname','pushAOFiles');
    add_filter('autoptimize_filter_cache_create_static_gzip','__return_true');
    

    Is this what we are looking at? Please let me know. If this is not what we are looking for then please guide me a bit to find the code. What should I search for?

    Thank you.

    Thread Starter richardmorse441

    (@richardmorse441)

    Hello Saumya,

    Thanks a lot for confirming this.

    Re I don’t use the default Cloudflare plugin, I hope we can use your plugin without installing the default Cloudflare plugin, please confirm. Also, if possible tell me whether is there any option that needs to be changed inside the Cloudflare dashboard?

    I will ask my developer to check other plugins and theme files to resolve this issue.

    Thanks,
    Richard

Viewing 3 replies - 1 through 3 (of 3 total)