Make a copy of current page on a new Tab

SPA applications are meant to be used in most scenarios on a single browser window.
But maybe just maybe you might have an scenario where you just need to have a snapshot of your current page into another one, it could be just for a side by side comparison.

The following script provides a quick way to do that

function makeSnapshot() {
var yourDOCTYPE = "<!DOCTYPE html..."; // your doctype declaration
var printPreview ='about:blank', 'snapshot');
var printDocument = printPreview.document;;

Just use call the function makeSnapshot()