Say I have a JS script that is only needed to be used in some pages. According to this advice it is recommended to insert it through the theme, plugin, etc, not through the post. Why is that? Is it for security or management?
Related question: What are the benefits of using wp_enqueue_script?
本文标签:
版权声明:本文标题:javascript - Why is it recommended to insert JS through the theme, plugin, etc rather than in the post directly? 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://roclinux.cn/p/1740312529a2171906.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论