3 ms·
What about using an iframe and refreshing it with links targeting it ? Use <link rel="preload" ...> to make it really fast. Do so for any subcomponent of your p
by GorgeRonde 8y ago
What about using an iframe and refreshing it with links targeting it ? Use <link rel="preload" ...> to make it really fast. Do so for any subcomponent of your page that can be updated independently of the rest of the page. Use browser caching for code assets/dependencies.
Pros: cheap & fast (?)
Cons: obviously the logical structure of your app must (somehow) follow the structure of nested iframes in the page.
- LiterallyDoge 8y agoI think iframes are inferior to the JS approach for a few reasons, one is usability for people with screen readers / etc - others would be standards compliance, bookmarking, managing state when pieces do need to talk to each other, etc.
- Raphael 8y agoIFrames create security obstacles, additional requests, take up memory, share CPU threads, and are usually the wrong size.