Skip to content

og-shawn-crigger/ci_datauri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Data-uri Images/Fonts

I recently did some website optimization on my own blog and one of the optimizations was to reduce the amount of http requests for Fonts and Images. Instead of queryin 4 requests for Fonts, I decided it would be easier to embed the font's using HTML5/CSS3's new data uri which is basically a base64 image embedding in your stylesheet or whatever.

To simplify doing this I simply created a simple CodeIgniter controller that read the files and outputted the correct markup. I figured other people might find it useful, so here it is.

Hopefully someone will find this helpful.

Cheers 🍺

Follow me

About

Controller to easily create DATA-URI images or fonts for easier embedding in your CSS or inline image tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages