January 21, 20197 yr I am curious which browsers you support (specifically IE). Is 8, 9 & 10 still worth supporting or just stick to IE11 and above? Considering using css grid to increase efficiency but not sure if it is worth it? Thoughts? On a side note - if "older" browsers are not supported (IE9 and below) is it worth it to put a js code the page that autodetects the browser of the user and suggests an upgrade if need be? Updatemybrowser.org etc.? Thoughts? Edited January 21, 20197 yr by RobertS
January 22, 20197 yr Have a look at the following link which gives a breakdown of browser support, and even more crucially an estimated usage percentage: https://caniuse.com/#feat=css-grid CSS Grid Layout comes in at 88.17% global usage if prefixed. Obviously, the usage statistics for your site may be higher or lower depending on your specific audience. To me personally, CSS Grid Layout has enough browser support to be used. However, 11.83% is by no means an insignificant figure and as such I would be looking at writing some fallback CSS to deal specifically with older browsers rather than not catering for them entirely. There is definitely some merit to feature queries and as far as I know all browsers that do not support CSS Grid, will support feature queries - so, this might be worth looking in to: https://hacks.mozilla.org/2016/08/using-feature-queries-in-css/ I think though you've hit the nail on the head with "Considering using css grid to increase efficiency but not sure if it is worth it" this I believe is the crux of it. Yes, CSS Grid increases efficiency- but when you are forced to write fallbacks the net time spent on utilising the technology may be better spent elsewhere.
January 22, 20197 yr You don't need feature detection for IE9 below because you can use conditional CSS comments to display something. The issue isn't really these browsers, but the support of what you're using. Mobile devices can have equally bad support as IE depending on what you're planning to use. You also have to weigh up if the implementation cost is as high as debugging and polyfilling. Unless you're doing a complex layout, I doubt the benefit saved in development time is worth the compatibility and testing overhead.
January 22, 20197 yr This is where your analytics help. Look at device and browser usage and see if anyone is using older browsers or browsers that don't support the feature you want to use. I've been using grid on sites for a while now and never had any problems.
January 22, 20197 yr Author Analytics say IE 10 and below is minimal but still there and I am just curious what the trend will be for 2019 moving forward - abandon IE 10 and below or keep supporting it for 1 more year? Do I stick with bootstrap or is it safe to update to flex-box as opposed to css grid? Thoughts? And on a side note - what is your favorite tool to add for UX to tell the user their browser is "out of date" and that is why the website looks wonky. Or does that reflect badly on the web designer for not using fallback code so the site looks good in older browsers?
January 22, 20197 yr 1 hour ago, RobertS said: And on a side note - what is your favorite tool to add for UX to tell the user their browser is "out of date" and that is why the website looks wonky. why would you need a tool for this? Just render some text explaining this. CSS-Grid is safe, depending on the browsers you want to support. I don't even use flex-box. The grid I use has inline-blocks and that will cover almost all layout combinations you can think of. There are edge cases though where flex-box or CSS grid would offer more but I rarely come across them in reality. I feel like as a dev you have bigger fish to fry than to be worrying about what layout tech you use. If inline-blocks will work for a given design then there's no harm in using them. If you're only supporting modern browser then grid is fine, but in the grand scheme of things I don't think your choice here is going to determine how successful the project will be.
January 22, 20197 yr Author Choosing the layout tech is in direct relation to browser support. Is it "ok" to only support "modern" browsers (IE11+) or not really?
January 22, 20197 yr 39 minutes ago, RobertS said: Choosing the layout tech is in direct relation to browser support. Is it "ok" to only support "modern" browsers (IE11+) or not really? Depends on the data that comes out of analytics, but in 95% of cases you can have it both ways by using a layout system that works in older browsers. Both me and Robert have heavily used inline-block for years on fairly ambitious layouts without issues. I also use Flexbox in some places, mainly for tricky alignment, and have been able to support IE9+ with this method.
January 22, 20197 yr Author If InLine Block has proven to be a reliable fallback to FlexBox, then I will look into it. Thank you so much.
January 22, 20197 yr It's worth remembering that CSS grid degrades gracefully on browsers that don't support it, if you don't provide any fallbacks - on those browsers content will simply be stacked linear fashion instead of in a grid. It will still be accessible and the content able to be read. Same goes for any modern CSS that older browsers don't support.
January 22, 20197 yr 2 hours ago, RobertS said: If InLine Block has proven to be a reliable fallback to FlexBox, then I will look into it. Thank you so much. It depends on the problem you're trying to solve. Layout can get complex on the web and reaching for CSS grid or Flexbox isn't the worst idea, it's just sometimes not needed.
Create an account or sign in to comment