I'm trying to implement the approach documented here: https://web.dev/defer-non-critical-css/#optimize
But I'm having trouble because it seems React doesn't support adding a string onload attribute. Plus, dangerouslySetInnerHTML would require a wrapper element, which I think is disallowed in head.
Wondering if anyone knows how to accomplish this with Remix? I assume using a non-string onload would be bad because the event handler would only be added after JS loads