Hi,
We are using the following code to generate the JS tag dynamically using PHP
	However, we DO NOT want to use document.write since it allows the script to be deferred thereby increasing page load speed. Secondly we’re seen issues with the ‘lazy-loading’ of our scripts when the code is being included using document.write
Can someone please let me know the replacement of document.write in PHP.
Appreciate relevant reponses.
					We are using the following code to generate the JS tag dynamically using PHP
Code:
	 echo 'document.write("<script type=\"text/javascript\" src=\"'.$jsPath.$value.'\"></script>");';
Can someone please let me know the replacement of document.write in PHP.
Appreciate relevant reponses.
Comment