最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why is it recommended to insert JS through the theme, plugin, etc rather than in the post directly?

programmeradmin24浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论