Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    it’s from this JS-code, but that’s not part of AO;

    
    <script>var cb=function(){var l=document.createElement('link');l.rel='stylesheet';l.href='PATH_TO_COMBINED_CSS_FILE';var h=document.getElementsByTagName('head')[0];h.parentNode.insertBefore(l,h);};var raf=requestAnimationFrame||mozRequestAnimationFrame||webkitRequestAnimationFrame||msRequestAnimationFrame;if(raf)raf(cb);else window.addEventListener('load',cb);</script> 

    on a side-note; you should not do minifying in both AO & W3TC, this can cause unwanted results in some cases.

    hope this helps,
    frank

    Thread Starter nomanriffat

    (@nomanriffat)

    Can you let me know which other plugin is causing this? Because I am only using Autoptimize and W3 which are related to cache and there is no any such text as “PATH_TO_COMBINED_CSS_FILE” in entire W3 repository
    PS: I am using w3 along AO on other sites and never got any issue there

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I have no idea @nomanriffat, AO doesn’t have that text in the source code either, cfr. https://github.com/futtta/autoptimize/search?utf8=%E2%9C%93&q=PATH_TO_COMBINED_CSS_FILE&type= and the JS is still there if AO is disabled (see view-source:https://jdca2017.ryanlamothe.net/?ao_noptimize=1 )

    That code seems to be part of this tutorial; https://www.sitelocity.com/critical-path-css-generator, maybe your theme uses it somehow?

    frank

    Thread Starter nomanriffat

    (@nomanriffat)

    It was in the theme footer file which was probably added by plugin “Above The Fold Optimization”. It is literally annoying when plugins write into theme core files and they don’t even revert changes upon deactivation. The text “PATH_TO_COMBINED_CSS_FILE” itself wasn’t anywhere in that plugin’s repository as well but I guess it might be their API which messed things up.
    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 PATH_TO_COMBINED_CSS_FILE URL being loaded’ is closed to new replies.