4 ms·
This should use object URLs instead of data: URIs when supported (Firefox 7, Chrome 11) due to the extreme inefficiency of data: URIs.
by Sephr 15y ago
This should use object URLs instead of data: URIs when supported (Firefox 7, Chrome 11) due to the extreme inefficiency of data: URIs.
- azakai 15y agoThanks for the feedback! Can you direct me to some docs for object URLs? I tried searching for it but can't find anything.
- Sephr 15y agoYou'll want to read http://dev.w3.org/2006/webapi/FileAPI/#creating-revoking http://dev.w3.org/2006/webapi/FileAPI/#creating-revoking and use BlobBuilder.js (https://github.com/eligrey/BlobBuilder.js https://github.com/eligrey/BlobBuilder.js) to smooth out the inconsistencies (e.g. createObjectURL is on window on older WebKits) and add BlobBuilder support to browsers that only support data: URIs.
- azakai 15y agoThanks!