There will soon be a HTML native method to retrieve a device appropriate
<img>. It too will repeat the very same environment tests that both our CSS and JS have performed in order to modify their behaviour to the client’s capabilities. And in the case of HTML it will repeat these environment tests for every single
<picture>on the page.
This is incredibly inefficient, and has the potential to make hand-authoring web documents implausible. Not to mention the problem that’s really to blame: Our technologies need to sense the environment in unison and adapt to a design, not to a device.
Recently, Apple open sourced the original encoder and decoder for the Apple Lossless audio codec which is written in C/C++. ALAC is, as its name implies, a lossless codec, which means that it is compressed but does not lose any quality. When decoded, ALAC audio files are bit-for-bit identical to the original uncompressed audio file.
I spent a while this week looking into how best to automatically hyphenate text on websites, to improve Today’s Guardian. I couldn’t find anything recent that summarised the options, so here’s a quick run-down of what I discovered.
An ajax loading gif generator, for creating those activity indicators
I’m trying to store the session state in the address bar to allow bookmarking. What can be changed in the URL that won’t trigger a page reload? The hash portion. So what I need to do is add my AJAX application’s parameters after a #.
There is an additional benefit to this approach: When you click on page anchors, these points are added to the browser’s history object so that when you press the back button you’re taken back to these points within the same page. That’s important because items are being added to the history without leaving the current page.