101 reputation
1
bio website
location Boulder, CO
age
visits member for 2 years, 2 months
seen Nov 26 at 19:15

Nov
26
awarded  Supporter
Nov
26
comment is it realistic to make use of HTML5 local storage to store CSS, and JavaScript
Bowser caching is not as straight forward as you may think, nor is it consistent across all browsers. For example, some browsers randomly decide to load web fonts (regardless of headers - can't find the article about this right now but I think it was Dave Rupert who discovered this). Also, ETAGs force browsers to check if a resource has been updated... and sometimes you can't remove ETAG (eg. Amazon S3) - so if your CSS file sends an ETAG header, it will always be checked for updates (304s are still a payload). In order to prevent unnecessary requests, custom caching is required.
Oct
15
comment How to avoid javascript becoming spaghetti code?
I hate to be the guy to say "just use a framework"... but for me, I'm always thinking about the guy coming after me, and to have a well-tested, documented, and community supported framework... it's a no brainer to me. My favorite is Javascript MVC (soon to be CanJS). It has scaffolding scripts and a very intuitive dependency manager (steal()) which allows you to have a very well structured application while compiling scripts down to 1 or 2 minified files.