-
Notifications
You must be signed in to change notification settings - Fork 865
Don't load jquery 2.x for IE 8 #178
Comments
Here is how I handled this. If anyone has any other suggestions, please let me know: // Enqueue scripts
if(preg_match('/(?i)msie [8]/',$_SERVER['HTTP_USER_AGENT']))
{
require_once('library/enqueue-scripts-ie8.php');
}
else
{
require_once('library/enqueue-scripts.php');
} |
Disclaimer: The visitors of the FoundationPress demo site is probably more tech-savvy (and awesome) than average and are hence not representative of the common user . But in all cases , the use of IE8 dropped drastically in recent years. |
Couldn't agree with you more, Ole. But sometimes you get those clients that don't even want a JS error to show up in IE8, so I had to come up with something. |
I know the feeling ;) Happy new year! |
I'm with you 10000% with IE death wish. But sometimes you just have to achieve something because of whatever reason possible. I'm personally using below code as starter of HTML document
and before the body closing tag:
The last thing I'm trying to get working are buttons, I'm not sure why they're rendered by IE8 totally weird. Offcanvas workaround: iehack.css with .off-canvas-left { display:none; } Ofcourse if you're using any plugins you'll also have to get rid of their loading. |
From my understanding foundation uses rem size measurement that is not http://caniuse.com/#search=rem Also $_SERVER['HTTP_USER_AGENT'] could be used to detect detect the device Best Regards Phill Booth. Theme Tec Please remember add my email to your address book. web: http://www.themes.technology email: help@themes.technology help@fthemes.technology portfolio: http://themeforest.net/user/phillbooth/portfolio?ref=phillbooth time zone: GMT+0 London, United Kingdom On 14 January 2015 at 19:14, Tadeusz S notifications@github.com wrote:
|
FWIW last year when I was trying different REM polyfills to make Foundation 5 layouts work in IE 8 I ended up using grunt-pixrem instead as it work much better for me. |
I'm trying some conditional logic in my enqueue-scripts.php to get a certain js to not load in ie11 only,
but it's not working -- both files are still loading on ie11. Any ideas? |
I'm using conditional code in my header.php file to load jquery 1.x and a few other files for IE 8. This works very well for making the foundation play nicely in IE 8. I'd also like to NOT load jquery 2.0 if on IE 8, which is loaded in enqueue-scripts.php. Has anyone hidden this file conditionally for IE 8, or have any advice on the best way to do it?
The text was updated successfully, but these errors were encountered: