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.
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.
That's a great idea. I'm loving all of these JSON-P minisites that you keep putting out. :)
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.