I'm loading an asset js requesting it on a section, but I would like to be loaded only in the first instance of the section and not every time the section is rendered. I can't load it outside because of performance issues.
Is there any way to check if a script is been loaded before in liquid?
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.