polv's coding blog

Pinned Health Windows macOS Linux Cross-platform

Tag: spa

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Sun, March 1, 2020

SPA with history mode router in vanilla JS (with potential for SSG)

I don't know non-JavaScript-based Static Site Generators do it, but JS-based, like Gatsby, Nuxt, or Gridsome can prevent reloading and show transition between pages on location.pathname changes.

True SPA like Vue can do it too, but on first load, you can hasten JavaScript by using prerender-spa-plugin.

I have just create an SPA with history mode router in vanilla JS, but I do use a bundler (Rollup).

patarapolw/minimal-rollup-ts-pug-sass-template

patarapolw/minimal-rollup-ts-pug-sass-template

Rollup + TypeScript + Pug + SASS template with no plan for JavaScript frameworks, whatsoever - patarapolw/minimal-rollup-ts-pug-sass-template

Tag Cloud

javascripttypescriptpythonlinuxmarkdownnode.jsvuenuxtmacospdfvscodewebdevchinesecrossplatformdesktopgithub-pagesseosqliteubuntuwindowsbolt-cmscmsconkydigitaloceandockerelectronfrescobaldigooglehealthlatex
Tweets by patarapolw