Skip to main content 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!


🚀 I just relaunched my Vanilla JS Pocket Guides with new code examples and real projects to help tie everything you’ll learn together. Check it out.

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

Get Daily Developer Tips