[英]Where should I put the <script> tag for sentry CDN in html markup?
I want to use the JavaScript SDK for sentry via CDN.我想通过 CDN 使用 JavaScript SDK 进行哨兵。 But I am not sure what is the best place to put the
<script>
tag in the html markup.但我不确定将
<script>
标记放在 html 标记中的最佳位置是什么。
I mean is the <head>
tag more suitable for this?我的意思是
<head>
标签更适合这个吗? Or at the end of the <body>
tag.或者在
<body>
标签的末尾。
通常它应该放在head
标签内,但这取决于你的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.