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 = window.open('about:blank', 'snapshot');  
var printDocument = printPreview.document;  
printDocument.open();  
printDocument.write(yourDOCTYPE+  
           "<html>"+
               document.documentElement.innerHTML+
           "</html>");
printDocument.close();  
}

Just use call the function makeSnapshot()