Skip to main content English Español Light Dark System

Include

<gstock-include> | GstockInclude

Examples

Included files are asynchronously requested using window.fetch(). Requests are cached, so the same file can be included multiple times, but only one request will be made.

The included content will be inserted into the <gstock-include> element’s default slot so it can be easily accessed and styled through the light DOM.

<gstock-include src="/assets/examples/include.html"></gstock-include>