• I just installed W3 Total Cache and it is working great But Infolinks Ad are not showing. In my source code, I can see that .js file of Infolinks is getting minified so not working.
    I do not find any settings in W3tc from where I can set not to minify “infolinks_main.js”.
    Below is the infolinks code i am using in footer area.

    <script type="text/javascript">
    var infolinks_pid = 12345678;
    var infolinks_wsid = 0;
    </script>
    <script type="text/javascript" src="//resources.infolinks.com/js/infolinks_main.js"></script>

    Please suggest. Thanks.

    • This topic was modified 8 years, 1 month ago by Devgun.
Viewing 4 replies - 1 through 4 (of 4 total)
  • in Minify > Advanced > Never minify the following JS files add

    /js/infolinks_main.js

    That would be the way – but infolinks_main.js is not on your website, it’s on infolinks website, so W3TC is not minifying that (it’s being minified by them). Do you have an ad blocker installed? Are you using auto minify or manual? (don’t add their script if using manual setting)

    Thread Starter Devgun

    (@devgun)

    @nigrosimone – It’s not working because the js file is not hosted on my site.
    @smartyp – No, am not using ad blocker. Right now I am using “Auto Minify” and this really making my website fast to load.
    :-O oh! yes, there is also “manual” option and using this options my Infolinks ad are back. But adding all those .js and .css file one by one is pain and there are plenty in wordpress & plugins. Beside it is also skipping other .js file for e.g. google fonts on google’s server, etc.
    And this also decrease my Pagespeed/ Yslow rank as per GTmetrix scan comparing to “auto minify”.
    I will request the developer to add easy options in w3tc to skip third party .js file from minifying.
    Thanks.

    • This reply was modified 8 years, 1 month ago by Devgun.

    I’m pretty sure auto doesn’t minify any external scripts. You shouldn’t include external scripts such as fonts, analytics or ad scripts. They are already optimised and should be faster delivered from their original source. Some rely on being delivered by the original source or they won’t work.

    If auto stops ads working, it’s probably because you have a conflict between javascript files. With manual you can adjust the order scripts are loaded, and where in the page they are loaded (head/foot etc) to get them working. Also turn off line break removal for js.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to set not to minify Infolinks js file. Infolinks not showing’ is closed to new replies.