Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

addSizes.js: Snazzy automatic link file-size generation. Posted to Nat’s snazzy new blog: a script that uses my json-head API to grab the file size of linked documents on a page and insert those sizes in to the document.

3 comments

  1. That's a great idea. I'm loving all of these JSON-P minisites that you keep putting out. :)

    Scott Johnson - 30th August 2008 18:11 - #

  2. Thanks. They're incredibly easy to build - the tinyurl one took exactly 11 minutes from idea to launch (I timed it).

    Simon Willison - 30th August 2008 19:10 - #

  3. It seems I posted my comment on the wrong post ... sorry Simon, please delete the other comment on the cascadenik post.

    Here's my comment
    ---
    Am I the only one that thinks that this is a bad idea?

    Unless you go out of your way to build some server-side caching for all the client requests, your web server is going to get hammered on every page view, for files that the client might never want to download in the first place.

    Even if you manage to do this, you will still be increasing the amount of requests dramatically, for small pieces of information, that your should be able to put into the HTML to begin with.

    Morgan Roderick - 30th August 2008 23:10 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site