The conditional comments use the syntax of normal comments: <!-- [if β¦]>β¦<![endif] --> . This is why browsers that donβt understand them ignore them. Thus, they can be placed wherever normal comments are allowed. And the script element is allowed to be children of the body .
So, you can put this conditional comment below in your body element.
source share