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
  • 8,706
  • 15
  • 46
  • 96

0 Answers0