Skip to main content Skip to secondary navigation Accessibility Feedback

HTML, ajax, iframes, and performance hacks

Jake Archibald recently noticed that loading a page on GitHub was faster if starting from scratch than if already on GitHub.

That kind of makes no sense, right?

What Jake found was that the really intricate JavaScript page loading they’re doing on subsequent page loads is removing a ton of optimizations the browser does for you, slowing the site quite noticeably on slower internet connections.

Jake gets into a whole ton of tips, tricks, and hacks (including using iframes, gasp!) to get around this and gain that speed advantage that ajax page loading is supposed to give you. Check it out!

Have any questions or comments about this post? Email me at or contact me on Twitter at @ChrisFerdinandi.

Get the Spare Parts Newsletter

Every week, I send out a short email packed with web development resources and interesting stuff from around the web.