Thoughts on the web, web design and film photography…
20 Tips and Tricks For Writing Fast Web Applications
I’m about 30 minutes from walking on stage to present my last session here at TechEd 2010 in New Orleans and I wanted to share this presentation early, just in case the session room fills up and folks can’t make it in or for those of you who weren’t able to make it. If you’re a TechEd attendee, the slides are up on the Schedule Builder, otherwise, you can find my deck here [8meg PPTX].
The Internet Explorer engineering team spends a lot of time working to understand what developers and doing when building their websites, where the bottle necks are (both in the browser and in the code that developers write). With all of the information that they gathered, they built set of 20 tips and tricks that will help your site run faster, and more efficiently. While the research they did used Internet Explorer as the base, almost all of these tips and tricks apply to all browsers.
Jason Weber presented these tips and tricks at MIX2010 this year – the session web page is at http://live.visitmix.com/MIX10/Sessions/CL29 and you can also download the slides, or the video in MP4, Windows Media Format or High Quality Windows Media Format. It runs about 80 minutes and should be required watching for every developer out there I think. I know I learned a few things and I think my site breaks some of the best practices that I’ve got listed below! (I guess I’ve got some work to do!
)
Without any further ado, I present to you…
20 Tips & Tricks To Improve Your Website Performance
- Ensure server side compression is enabled on “text” like files
- Use conditional requests
- Provide cacheable content
- Minify your JavaScript
- Don’t scale images (I’m really guilty of this one)
- Use image sprites
- Link JavaScript at the bottom of your file, and avoid inline JavaScript
- Add the “defer” tag when you have to link to JavaScript at the top of your page
- Link Style Sheets at the top of your page
- Avoid using @import
- Minimize Walking Look Up Chain
- Cache Function Pointers
- Use the Native JSON object
- Remove duplicate scripts
- Minimize DOM interactions
- Use efficient DOM Methods
- Use querySelectorAll for groups
- Only send required styles
- Simplify your selectors
- Minimize page layouts
PS: If you want a little laugh, go to the TechEd site, and look at my bio – it wasn’t quite supposed to read like that ![]()
[UPDATED 6/10/10 1:25pm PST] Fixed the link to the slides, sorry about that!
| Print article | This entry was posted by Pete on June 10, 2010 at 11:30 am, and is filed under Internet Explorer, Web Design & Development. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |


about 2 months ago
At least IE is ignoring the BLINK tag in your bio
about 2 months ago
Hellp Pete, Great session. At the ssession I asked if you could provide us info on the tools you used to get the stats on where the browser was spending its time. Can you provede this info?
about 2 months ago
Hello again Pete
You mentioned at the session that you would provide us info on the tools you used to get the stats on where the browser was spending its time. Can you provide this info?
about 2 months ago
It looks like the IE Engineering Blog beat me to the punch!
http://blogs.msdn.com/b/ie/archive/2010/06/21/measuring-browser-performance-with-the-windows-performance-tools.aspx
It’s a great post, with lots of detail and info! I’ll summarize later today, but wanted to share sooner than later!
Enjoy!
PEte