I was looking at the page source for an ASP.NET page I wrote and noticed that my javascript was being rendered like this:
<script type="text/javascript">
// <![CDATA[
document.write('<script src="/_layouts/myProject/js/jquery.min.js?rev=sEo7zNI93reYIUNwemPM%2BQ%3D%3D"></' + 'script>');
// ]]>
</script>
Does anyone know :
- Why there are commented out CDATA
tags around my script include? Do these even do anything? - Why it’s using a
document.writeinside of the script tag to include… another script tag?
1 Answer