Search code examples
node.jstemplatespugpage-refreshpartial-page-refresh

Do jade extends/include system means no whole page reload ?


is there is any other way than AJAX/WebSockets to implement partial-page reloads, in node.js applications ?

I was told that template engines with a block/includes functionnality like Jade's do that, but when I open up Chrome DevTools on simple apps built with it, it seems it's still a whole page reload.

Thanks


Solution

  • Jade engine compile template file to minified HTML but included blocks still result to a full HTML page, no partial loading. If you want something more dynamic I guess ajax/ws is best way.