Necessitates Proper Modularity

    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');

    Keywords

    none

    Install

    npm i electrum-style-reload

    DownloadsWeekly Downloads

    0

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

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