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?