"Download" and delay JavaScript execution

All pages on this site uses disqus (a comment system). A script block in each document allows disqus to do all the magic.

For this example, I’m using the data-uri technique to let users decide if, and when, that script should be executed.

This is how things look:

<script>
/* the disqus script is ready to go */
f = function(){
    var plug=document.createElement('script');
    plug.setAttribute("src", "data:application/x-javascript;base64,dmFyIGRpc3F1c19zaG9ydG5hbWU9J2NzczEwMSc7dmFyIGRpc3F1c19pZGVudGlmaWVyPScvYXJ0aWNsZXMvd2hhdF9lbHNlX2Nhbl93ZV9kb193aXRoX2RhdGEtdXJpL2luZGV4LnBocCc7dmFyIGRpc3F1c191cmw9J2h0dHA6Ly93d3cuY3NzLTEwMS5vcmcvYXJ0aWNsZXMvd2hhdF9lbHNlX2Nhbl93ZV9kb193aXRoX2RhdGEtdXJpL2luZGV4LnBocCc7dmFyIGRpc3F1c190aXRsZT1kb2N1bWVudC50aXRsZTsoZnVuY3Rpb24oKXt2YXIgZHNxPWRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO2RzcS50eXBlPSd0ZXh0L2phdmFzY3JpcHQnO2RzcS5hc3luYz10cnVlO2RzcS5zcmM9J2h0dHA6Ly8nK2Rpc3F1c19zaG9ydG5hbWUrJy5kaXNxdXMuY29tL2VtYmVkLmpzJzsoZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2hlYWQnKVswXSB8fCBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnYm9keScpWzBdKS5hcHBlbmRDaGlsZChkc3EpO30pKCk7");
    document.body.appendChild(plug);
}
</script>