List.js – Search, sort, filters, flexibility to tables, list and more
Tiny, invisible and simple, yet powerful and incredibly fast vanilla Javascript that adds search, sort, filters and flexibility to plain HTML lists, tables, or anything.
List.js – Search, sort, filters, flexibility to tables, list and more
Tiny, invisible and simple, yet powerful and incredibly fast vanilla Javascript that adds search, sort, filters and flexibility to plain HTML lists, tables, or anything.
Echo is quite handy for web developers.  On those pages that feature a lot of images, things can get slow and the server might get too much of an abuse (with more traffic thrown at it).  One way to work around this is to only load those images that are in the visible part of the screen.  Here is a demo of how it works.  Just keep scrolling down and notice how by default you have a blank.gif image shown, with a standard loading indicator and a split second later you see the actual image which was supposed to be in there.
Simple, easy, elegant – and that’s how I like it.
I’ve praised GitHub many a time in posts on this blog and in numerous conversations over a pint. Â Today, I found yet another reason to do so – GitHub error pages. Â We’ve all seen a parallax 404 by now, right?
Today was the first time I looked into the source code of the page. Â It greets one with the following words right under the HTML 5 Doctype definition:
Hello future GitHubber! I bet you’re here to remove those nasty inline styles,
DRY up these templates and make ’em nice and re-usable, right?Please, don’t. https://github.com/styleguide/templates/2.0
The link provides even more goodness. Â The list of other (all?) GitHub error templates is provided with explanation of which one fires when, as well as an insightful list of rules that GitHub uses for building error pages. Â Have a look:
If you’re visiting from the internet, feel free to learn from our style. This is a guide we use for our own apps internally at GitHub. We encourage you to set up one that works for your own team.
Error pages should be built such that they require zero scripting, zero javascript, and zero dependency on anything whatsoever. That means static HTML with inline CSS and base64-encoded images.
The following are banned from every error page:
- AllÂ
<script>
 tags with anÂsrc
 attribute.- All JavaScript that loads external data.
- AllÂ
<link>
 tags.- AllÂ
<img>
 tags with anÂsrc
 pointing to a URL.
It’s things like that that keep me coming back and looking for more web development elegance all around GitHub.