Script to embed image and CSS data in HTML files

Posted by andreas-h on Pro Webmasters See other posts from Pro Webmasters or by andreas-h
Published on 2014-03-11T07:52:49Z Indexed on 2014/06/10 3:44 UTC
Read the original article Hit count: 470

I have a HTML page which references external stylesheets and shows some images. I'm looking for an easy way to include all referenced external resources in the HTML file directly, so that it doesn't have any external references any more. (Images should be included in the HTML file using the <img src="data:image/jpg;base64,[...] method).

EDIT: I want to do this so that my web proxy can deliver a nice-looking error page if the backend is down, so I have to assume all my webservers cannot deliver the static content which would normally be linked to from my websites (CSS, images).

© Pro Webmasters or respective owner

Related posts about html

Related posts about looking-for-a-script