4 ms·
> "CHIP. CHIP, WAKE UP. YOU KNOW WHAT WOULD BE TOTALLY BITCHIN'? A VERSION OF SNAKE THAT COULD FIT IN A URI!" Sorry to Melvin all over this comment, but techni
by mathias 15y ago
> "CHIP. CHIP, WAKE UP. YOU KNOW WHAT WOULD BE TOTALLY BITCHIN'? A VERSION OF SNAKE THAT COULD FIT IN A URI!"
Sorry to Melvin all over this comment, but technically, anything can fit in a data: URL. On its own, it’s not much of an accomplishment.
OTOH, a fully functional snake game that fits in ~1KB is pretty impressive. Kudos to you, sir!
- bytex64 15y agoI read somewhere that most browsers have a practical limit to what you can paste in. What I should have written was that it would fit in an address bar. shrug
- DanBC 15y agoI agree, RFC2397 shows a bunch of things that can limit the length of a data URL. (http://www.ietf.org/rfc/rfc2397 http://www.ietf.org/rfc/rfc2397)
- mathias 15y agoThe "data:" URL scheme is only useful for short values. Note that some applications that use URLs may impose a length limit; for example, URLs embedded within <A> anchors in HTML have a length limit determined by the SGML declaration for HTML [RFC1866]. The LITLEN (1024) limits the number of characters which can appear in a single attribute value literal, the ATTSPLEN (2100) limits the sum of all lengths of all attribute value specifications which appear in a tag, and the TAGLEN (2100) limits the overall length of a tag. These are references to (theoretical) limitations in HTML/SGML. They are not limitations of the data URL scheme. Also note that bytex64’s page doesn’t use a link; it just shows the data URL so you can copy and paste it. Either way, none of the above limitations apply here. </nitpick>
- maximusprime 15y agoafaik it's usually about 4k but more in modern browsers.
- laumars 15y agoWhere does the "CHIP. CHIP, WAKE UP" quote come from. I recognise it, but I can't recall why.
- daeken 15y agoIt's a reference to the beginning of The Matrix.