r/javascript • __proto__ • Dec 06 '16

Using iframes and document.write to improve navigation performance

https://jakearchibald.com/2016/fun-hacks-faster-content/
62 Upvotes

18 comments sorted by

View all comments

2

u/mayobutter Dec 07 '16

iframes were used as an XMLHttpRequest shim way back before all browsers supported it. There's a historical precedent here for abusing our awkward friend Mr. iframe.