Closed matthewp closed 6 years ago
I'm seeing this in bitballs
doing some debugging, it happens b/c document.styleSheets
comes out empty each time the css slim plugin is called (even tho there are links already on the header, not sure why)
Was able to replicate in Safari but not Firefox (guessing that's why the tests didn't caught it)
Because the optimizer doesn't resolve to URLs, the check to see if a
<link>
already exists in the page will always be falsey. The fix is to use eitherURL()
or<a>
to get the href relative to the page, and use that as the check.