0

I want to disable a stylesheet on page load with:

<link rel="stylesheet" href="..." disabled>

This works well in all browsers but Firefox, though it works when I disable it with:

var stylesheet = document.querySelector('link');
stylesheet.disabled = true;

Any ideas?

sdvnksv
  • 9,350
  • 18
  • 56
  • 108

0 Answers0