感谢 @riking!
确实,当 text/javascript 出现在主题组件的 header 或 footer 中时,它会在已发布的页面上执行。
text/javascript
header
footer