The best way to guarantee that this loads a single time would be to load it in the global layout/theme.liquid file where it will only be loaded once. If performance is an issue, your best bet would be to async or defer the loading of the asset so browsers know to load it when necessary.
Take a look at the examples of how shopify recommends you load your javascript assets:
https://github.com/Shopify/theme-check/blob/main/docs/checks/parser_blocking_javascript.md