excluding javascript file for explorer
-
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
- The topic ‘excluding javascript file for explorer’ is closed to new replies.