shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- $root”document”HTMLElement
The root element in which to reload the stylesheets
Example
import { reloeadStylesheets } from '@blackbyte/sugar/dom';
reloadStylesheets();Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space