3,588 karma · joined December 26, 2009
(𝐺𝑖𝑡𝐻𝑢𝑏, 𝑓𝑜𝑟 𝑒𝑥𝑎𝑚𝑝𝑙𝑒, 𝑑𝑜𝑒𝑠𝑛’𝑡.)
The "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>
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!
If you want to write valid markup, that’s great. Heck, we should all do it! But there’s a lot of invalid existing content out there that isn’t going to fix itself anytime soon.
7am to 3pm = 8 hours 4pm to 12am = 8 hours
Have you?
Are you saying it’s not necessarily slower to use JS to generate CSS on the client-side, compared to just serving up the CSS with all prefixes included in the first place? Do we really need a test case for that? I’m not even talking about your code or anything; just the general idea.
In general, it’s a bad idea to rely on client-side JavaScript for something that can be done without. PrefixFree is no exception.
I can see how PrefixFree can be useful for quick demos or during presentations (the way you use it is awesome!) but when you’re gonna post an article like this on a site like Smashing Magazine _people are gonna use it_ in production as well.
I love your work Lea, you know I do; I just don’t agree with the philosophy behind this particular project.
FTFY.
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
Commit: https://github.com/mathiasbynens/dotfiles/commit/7346f4c4592...If — like me — you hate the Resume feature so much, you can disable it system-wide in System Preferences. I’m still looking for a command that does this :)
It’s pretty useful though; when I set up a new machine, I just clone my repo, run the bootstrapper, then `./.osx` and BOOM!
You say it’s faster, but fail to provide any numbers / a jsPerf test case. I’m sure it’s faster to execute `waituntilexists()` initially, but if you take into account it uses an 5ms interval in which it traverses the DOM for the same elements over and over again until they’re finally found, it seems it probably has a negative impact on performance overall.
What’s wrong with event delegation anyway?
So really, the title should be: “JSON: The ES3 subset that isn’t.”
Issue reported: https://github.com/judofyr/timeless/issues/57
The good news is, you don’t need Prototype at all. I made this userscript this morning: https://gist.github.com/880967 Just click one of the “raw” links to install.
It’s time we stop complaining and start embracing this part of the URL layout as if it was robots.txt we’re talking about.
But yeah — some web apps rely on /favicon.ico as well. All the more reason to just place it there :)