The portal feature allows you to transport sections of your template code to another part of the page.
If you are linking and including scripts, you'll want to tell Elements to only include the link once (when multiple instances of the same component are on the page). To do that you can use the "includeOne argument.
Include once across multiple components.