Re:Portals API
by Touche on Tuesday June 30, 2020 @10:47AM
(#23690564)
If you replace the entire body wouldn't there be a blanking that occurs regardless? Or does the browser not repaint the parts of the page that look the same in the before and after?
[ Parent
| on HN ]
A regular page load will block and show a blank screen until all of the style tags, script tags, etc. have been fetched. Replacing the body does take a few ms to paint, but does not need to wait on any other fetches.
Of course there are techniques to improve page load time without turbolinks (using async script tags for example), but turbolinks predates many of those.