be-headed
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

be-headed

Syntax

    <template  be-headed=fonts.gooleapis.com-css-family-indie-flower>
        <style>
            @import url(https://fonts.googleapis.com/css?family=Indie+Flower);
        </style>
        <template id=fonts.gooleapis.com-css-family-indie-flower></template>
    </template>

... places:

<style>
    @import url(https://fonts.googleapis.com/css?family=Indie+Flower);
</style>

inside document.head.

The purpose of the inner template:

If the template appears multiple times on the page with the same attribute value (fonts.gooleapis.com-css-family-indie-flower), only one instance will get added to document.head.

Package Sidebar

Install

npm i be-headed

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

5.2 kB

Total Files

8

Last publish

Collaborators

  • bahrus