Blog
-
How to disable a CSS stylesheet with JavaScript
Written on September 27, 2022Contrary to what every website out there is saying, the proper way to disable a remote stylesheet imported with
<link rel="stylesheet" type="text/css" href="/url">
is not to usestylesheet.disabled = true;
, it's rather to usestylesheet.media = "not all";
. Usingdisabled
on<link>
element is not standard and should be avoided. It doesn't seem to even work properly in chrome. -
Resolving merge conflicts when introducing formatting to an existing codebase
Written on September 22, 2022If a project doesn't use any formatting tool, introducing them can be a headache, and is almost guaranteed to cause merge conflicts with any ongoing PR. Here's how to fix them.