Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chriscoyier/inline-or-cache-svg---both

Let's see how possible this is.
https://github.com/chriscoyier/inline-or-cache-svg---both

icons

Last synced: 16 days ago
JSON representation

Let's see how possible this is.

Awesome Lists containing this project

README

        

# Icons! Cached!

I wrote that inlining your <svg> icons makes for the best icon system. Scott Jehl wrote that just because you inline something doesn't mean you can't cache it. Let's see if Scott's idea can extend to SVG icons.

[Demo Site](https://serene-sinoussi-3d0c1f.netlify.com/)

## Needs a server...

This works on macOS:

```
php -S localhost:2222
```

## Build

There is a wildly simple build step here:

```
node build/build.js
```

It's just so that the SVG icons can be included and not duplicated needlessly.