
436 V Transfers
XML data; we can grab the raw responseText string data and do pretty much
what we want with it using JavaScript.
If not XML, could we use JSON? Working with JSON in JavaScript is simple
because it is a tiny, data-only dialect of JavaScript. Every browser that supports
WebGL has a fast and safe JSON.parse method. JSON may be a lighter and simpler
alternative to XML, but it is still no panacea for 3D models. Sure, XML’s tags are
much larger than JSON’s, but the tag sizes don’t really matter if almost all of the bytes
are consumed by giant float arrays. Besides, GZIP does a good job of compressing
the redundancy in XML tags. We’ll leave