Unfortunately you're right. I guess we have to do both. But please call `.querySelector()` on the nearly empty DOM you create anyway. This will be faster than calling it on the real DOM which holds quite a few elements.

Also please use `.insertRule()` and catch the exception, instead setting `textContent`and counting the rules. I assume that the former will be more efficient and reliable.