From the course: Creating Web Icons with SVG
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Patch browser support issues
From the course: Creating Web Icons with SVG
Patch browser support issues
- [Voiceover] As with the previous methods we've covered, using external SVG sprites stored in their own files, and calling in the symbols in your page, will not work in older browsers. However, there's an additional caveat here. This also doesn't work in modern versions of Internet Explorer. Because, Internet Explorer doesn't like that we are trying to pull content out from one file, and jamming it into another. It kinda looks like we're doing something fishy. It's actually fine, but Internet Explorer doesn't like it. That means for full, modern, cross-browser support, we need to add in a shim. The good news is we have a solution for this. It's a javascript plugin called svg4everybody. You get it by going to github, then going to the dist folder, and just downloading svg4everybody.min.js In the exercise files for this movie, 04_06, I've already done that. It's found under the js folder, right here, svg4everybody.min.js To get it to work all you have to do is queue up the file and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Overview of the method1m 22s
-
(Locked)
Create a manual SVG sprite3m 56s
-
(Locked)
Display SVGs from an inline sprite3m 29s
-
(Locked)
Create an optimized SVG sprite with SVGO and spritesh7m 14s
-
(Locked)
Display SVGs from an external sprite2m 49s
-
(Locked)
Patch browser support issues4m 28s
-
(Locked)
-
-
-