Dynamically load on fly create blob url script let css div color red let link document createElement link link type text css link rel stylesheet document head appendChild link let myBlob new Blob css type text css link href URL createObjectURL myBlob script div HELLO Hello div style body min height 300px style script let myscript console log hello let d document createElement div document body appendChild d d innerHTML This line was created on the fly dynamically b cool b let myBlob new Blob myscript type text less let blobURL URL createObjectURL myBlob let s document createElement script s src blobURL document head appendChild s script div HELLO Hello div
myscript console log hello let d document createElement div document body appendChild d d innerHTML This line was created on the fly dynamically b cool b let myBlob new Blob myscript type text less let blobURL URL createObjectURL myBlob let s document createElement script s src blobURL document head appendChild s script div HELLO Hello div