3 ms·
Many single-page-apps, and unfortunately also many regular looking pages, fetch new content using Ajax and splice it in the page dynamically. This has some obv
by sfvisser 6y ago
Many single-page-apps, and unfortunately also many regular looking pages, fetch new content using Ajax and splice it in the page dynamically.
This has some obvious advantages for some use cases: preserving local state, fast refresh, less duplicate data fetching from the server, etc
Downside is those are not links and opening in a new tab doesn’t work by default. It’s fixable in most cases, but additional work.
Luckily modern frameworks like Next.js make it easy to build apps and pages that have best of both worlds.