📜 ⬆️ ⬇️

Crossbrowser data: URL

After the articles, the pictures in the body of the page using data: URL and data URL in IE were written by one of the readers and suggested a method of using base64 encoding in CSS files under IE (as described in HTML files, described in the last article). After that, a couple of months passed before I had the opportunity to take up the consideration of this method in more detail. However, after several weeks of research, a very encouraging picture was obtained.

What is this about? IE (up to version 7 inclusive) does not support the data:URL protocol, and with it the base64 encoding of external files and their inclusion directly into the body of the required document (be it HTML or CSS / JS file). However, if we consider the use of the mhtml protocol (which, of course, is only supported in IE), much becomes clearer, and base64-coding can be fully utilized.

read further on webo.in →

')

Source: https://habr.com/ru/post/27207/


All Articles