## Linked Components
You can link to components using the `link` tag.
When you do this, you do not need to include a script with the id "lightview" unless you are also creating a local
component or using `as=x-body`.
So long as the file name for the linked component includes a hyphen, it will be used as the tag name. If not, an `l-`
will be prefixed.
You can alias the filename to your own tagname to avoid collisions with other components by using an `as` attribute on
the anchor. Try cutting and pasting this to the `head` and updating the `body` accordingly.
```html
```
If you are loading the component across origins, you must also include the attribute `crossorigin="use-credentials"`.
Although, it is up to the responding domain to actually require credentials or not.
*Caution*: You MUST absolutely trust the origin from which you are loading a component. Components can walk and modify
the DOM.
Below is the content of the `my-component.html` file. The script containing `src="../javascript/lightview.js?as=x-body"`
in the head is un-necessary and is ignored when linking the component. However, including it makes the component unit
testable, i.e. the file can be loaded directly in a browser, it does not need to be imported as a component by
another file.