Backward compatibility
There is a limit to how far in history we will be able to support our layout but there are some things we can do to extend the support to older browser and that will be our main topic.
Keynotes:
- Making our base design to work on all fallbacks.
- Expanding support to IE9 with HTML5shim
- Testing, Testing, Testing.
properties:
media queries, HTML4, CSS2.1, responsive design, testing, backward compatibility, html5shimVideo Transcript
00:00In the last lecture we talked about mobile responsiveness and in this one
00:05we're wrapping up the chapter talking about backwards compatibility and
00:09Really when we're talking about that is really talking about what is the best strategy to work on?
00:14Is it to create many fallbacks?
00:16Is it to create a base design and then enhancements which is my personal preference?
00:20And then we're gonna talk about how to support older browsers using HTML5 shiv or any other
00:27Scripting that would enable you to create support for older browsers that are not supported and really the core of
00:34Everything in this last lecture is test everything out if it's important the design in an older browser
00:40Just make sure you test it because that is critical and web development
00:44All right, so let's get started with our lecture and what I want to do is I'm gonna go right into my source files
00:50In my source files what I want to do I want to talk first with
00:54Talk first, you know, like even I'm gonna go to my styling talking first about we were talking about how some browsers might support screen
01:00But they might not support other stuff
01:02If you really want to make sure that only if everything is supported as you recall
01:07We talked about that in our earlier stage, which we said basically that you would add basically only in the beginning and only
01:15would basically
01:17Confirm and say basically because the word only is only supported if it's already supporting most of the comments
01:23Things around so if you put here only it will basically skip this and skip this rule if there is no support
01:30And this is really what we want to do
01:31We want to create a skip if it there's no support for the element that we're trying to reach now
01:38What I want to do next and it really is it's only about all about creating the first keyword
01:42That there will be that cuz screen has been supported for a really long time
01:46But let's assume that that's not our issue and we want to take a step deeper now
01:51My personal preference is really to do nothing create a design
01:55Make sure that your design looks good even without those extra media attributes such as many say that you want to design for mobile
02:02But I would say make your core design that's standard size that all your users are using. That's my personal preference
02:08Although you'll see mainly in online recommendations to start for mobile, which I do like that approach
02:14But I think a more realistic approach is starting from your core design
02:19Like you did in traditional design because then you could adopt your existing designs as well and modify them for smaller or larger
02:26Even though we'll make your design work a lot easier if you start from a mobile screen and move your way up
02:32alright, so I want to talk about one more thing and this is a very theoretical ending for this chapter is I
02:39Don't believe in putting scripts and although you could put basically HTML rules, for example here
02:44We put here the HTML 5 shiv
02:48The shim HTML 5 shim if less than IE 9 so anything that is less than
02:55HTML 9 then we're gonna put here a shim that was gonna help us upgrade to HTML 5 now
03:00There's a lot of scripts out there that could do a lot of stuff to enhance features
03:04But the problem is the older browsers tend to really chug along whenever you're putting too much script in them
03:10So my recommendation is really give less do less create a really basic design
03:16And if you need to do modifications for IE or any other device keep it to the CSS
03:20So I wouldn't go to JavaScript to try to create those modifications
03:24Mainly because if you notice them
03:26I'm sure you've noticed that you go on to websites that are crazy heavy and that's because they overuse JavaScript and they overuse
03:33Too many things so less is more and with that said I'm gonna cover and end this chapter chapter because really this is really about
03:41Tweaking it to the specific browser that you're gonna be working on and testing testing testing
03:47So I hope you enjoyed this chapter and we'll see you in the next section
