Currently browsing JavaScript DOM

Tuesday, May 10, 2022

How to Add a CSS Stylesheet in Vanilla JavaScript

The function below will dynamically inject a CSS stylesheet in the document's using Vanilla JavaScript (no dependencies).