---
title: "Comment by James White on \"Implementing External Widgets in Vue.js\" | Hashnode"
description: "Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in"
url: "https://hashnode.com/posts/implementing-external-widgets-in-vuejs/5ff40e47fc8177134fbb4a64/comment/61c9009c1de80a7fb227f81b"
---

[Discussion](https://hashnode.com/posts/implementing-external-widgets-in-vuejs/5ff40e47fc8177134fbb4a64)

Comment [Implementing External Widgets in Vue.js](https://hashnode.com/posts/implementing-external-widgets-in-vuejs/5ff40e47fc8177134fbb4a64)

[James White](https://hashnode.com/@Jakenuts)

[Dec 26, 2021](https://hashnode.com/posts/implementing-external-widgets-in-vuejs/5ff40e47fc8177134fbb4a64/comment/61c9009c1de80a7fb227f81b)

Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in case the widget is used just below that, but it feels odd.
