Using Sennajs on a Static WebsiteCreated: 16 January 2020 Modified:
Sennajs is on GitHub. I cloned the repository and copied the build folder in its entirety to my website.
Sennajs changes only the marked section of your HTML when navigation occurs. In the screenshot (below) the static parts of the page are highlighted in blue and the changeable part is highlighted in green. When a link is clicked only the portion in green will change. This results in faster load times and reduced page flicker.
Now lets see how the HTML looks.
In the case of this site, I was using Code Prettify for syntax hightlighting of my code examples. This highlighting would not occur after the initial page load because I was relying on page load events.tags: sennajs - static - website