• Hey first of all i have to say that this is a really nice plugin, simple and easy to use.
    I am having a problem when i select the option for:
    “Remove render-blocking JavaScript”.

    I am trying to load html5shiv which must be loaded at the head of the page. I am trying to load it this way:

    <!–[if IE]><script data-wpfc-render=”false” src=”<?php echo esc_url( get_template_directory_uri() ); ?>/scripts/html5shiv.min.js” async type=”text/javascript”></script><![endif]–>

    as you can see i have added data-wpfc-render=”false” in order to make it exclude the javascript code.
    Now it seems like the plugin conver the file to different file and still load it from the bottom of the page instead of the head.

    If i remove the code for IE <!–[if IE]><![endif]–> then the code is loaded from the top but it load for all browsers and not just IE.
    Is there a way to exclude the file so it will stay on the <head> section and won’t be converted to different javascript file?
    It seems like the css option for exclude works well but not the javascript option.
    Hope there is something i can do.
    Thanks

    • This topic was modified 7 years, 7 months ago by oalddesign.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oalddesign

    (@oalddesign)

    I have just found out one more problem with the plugin on explorer 8 and 9. When you combine css file that is too big explorer stop displaying the css file.
    So when i choose to combine all the css to one file it stop working on explorer.

    It might be a good idea to fix the problem by dividing the css files into 2 files instead of one if the file is too long.

    Plugin Author Emre Vona

    (@emrevona)

    please contact me via email: https://www.wpfastestcache.com/contact-us/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘excluding javascript file for explorer’ is closed to new replies.