Hi nikhulion, according to the script src attribute, we can see it add the scriptresourceaxd reference, check your root folder and make sure it is exist. @sandeepannath actually it's not a restriction, it's due to the behavior of an interpreter when ever an interpreter meets an ending script tag, it's interpreted - well - as an ending script tag. Because the script loader was using documentwrite, the page i was optimizing rendered late and other async scripts in the page took longer to download i removed the script loader and instead wrote my own code to load the script asynchronously following the createelement-insertbefore pattern. In my antiquated experience if someone is using something bad like 'documentwrite' in the file, script tags inside the body can potentially output something that will be rendered by the browser putting it outside the closing body tag removes that silly potentiality. Insert in place without documentwrite be able to control where the content is inserted — the syndication script needs to insert the content wherever the script tag is.
Html code: html tags or code can also be added using documentwrite method ie just use the html code as the argument for documentwrite or documentwriteln functions. Run script tags in innerhtml content when inserting html content in the dom using innerhtml, script tags inside it will not load or run this applies to both inline scripts and external ones using the src attribute.
If you write a script that does not produce any document output -- for example, a script that defines a function but never calls documentwrite( )-- you may use the defer attribute in the script tag as a hint to the browser that it is safe for it to continue parsing the html document and defer execution of the script until it encounters a. With the script tag being placed anywhere within such an html file, it is a bad idea to have documentwrite() statements inside script blocks that are intertwined with html inside a web page b) rendering. Html script tag - learn html to develop your website in simple and easy steps starting from basic to advanced concepts with examples including overview, basic tags.