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!

🚀 Make 2018 the year you master JavaScript! My pocket guides and mini courses are short, focused, and made for beginners. You can do this!

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

Get Daily Developer Tips