I am working on a user interface for Android and iOS. Most likely, it will be built using PhoneGap (or the like), which means that the user interface will be an implementation of HTML5.
For most of the images, we decided to go with SVG files, as they scale well on different Android screens and are great for Retina on iOS.
So far, the use of .svg files is great for us, and thanks to Safari and Chrome support, it's easy to test locally in a standard browser.
The trick is that these .svg files will become quite large when we turn them into sprites. Thus, I am studying the svg gzIPped files (.svgz).
A quick test shows that the 50k SVG we use compresses to 8k via gzip.
However, the catch is that it appears that client / server interaction must occur to unzip the SVGZ file. I cannot get Safari to display the associated .svgz file when running locally (since I assume this will happen when through webview in an application compiled into PhoneGap). However, Chrome seems to be able to display svgz.
So my questions are:
- Is there a way to use .svgz files locally on iOS through the PhoneGap application (I have not yet reached the point that we are compiling through PhoneGap, but cannot verify this part yet)?
- Any known issues with .svgz on Android (assuming it looks like desktop Chrome)?
- Should I even bother with .svgz in this situation where there is no actual download problem (outside of the initial boot of the application)?
source share