reloadStylesheets

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.css

This function just loop on each “link” tags that point to some css files and reload them by adding a “queryString” with the timestamp in it to prevent caching

Params

  1. $root”document”HTMLElement

    The root element in which to reload the stylesheets

Example

import { reloeadStylesheets } from '@blackbyte/sugar/dom';
reloadStylesheets();