electrum-style-reload

1.2.0 • Public • Published

electrum-style-reload

NPM version

Utility functions to reload CSS given their URL.

import {init, reload} from 'electrum-style-reload';
 
// Initialize the reloader; call this after the page was loaded.
init ();
 
// Force the browser to reload the specified CSS; this will only
// work if the URL matches an already loaded CSS.
reload ('http://my-site.com/foo.css');

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i electrum-style-reload

    Weekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • yvessaz
    • samlebarbare
    • catia
    • nocturnight
    • schroeterm
    • pierre.arnaud