Disable Scripts in certain browsers
-
I have quote a bit of html5 and css3 in my wordpress site. i have get nearly all of it to work right (or close to it) in IE6-IE10.
I have an ADOBE EDGE PREVIEW animation on all of my pages (not on home).
In IE8 and below i haven’t figured out how to get it to work could care less about it in those browsers, however i would like to stop the 3 scripts that run it in those browsers to prevent any errors in validation.i know this script wont work but i feel i might be on the right path with something like :
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 ); if (ie8 == true) { function my_deregister_javascript() { if ( is_Page() ) { wp_deregister_script( 'edgejs','edgejquery','edgesymboljquery' );} }}
Can anyone lead me in the right direction?
I wouldn’t have made this post if it was something that a google search could pull up.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disable Scripts in certain browsers’ is closed to new replies.