Plain string for <Link onload="..."> shows warning

I want to preload google fonts in the
root.tsx
like so:

            <Link 
              rel='preload'
              href="https://fonts.googleapis.com/..." 
              as='style'
              attr:onload="this.onload=null;this.rel='stylesheet'"
            />


yet, typescript can't seem to find that attribute, i.e.:
Type '{ rel: string; href: string; as: "style"; "attr:onload": string; }' is not assignable to type 'IntrinsicAttributes & LinkHTMLAttributes<HTMLLinkElement>'.
Property 'attr:onload' does not exist on type 'IntrinsicAttributes & LinkHTMLAttributes<HTMLLinkElement>'

How can I use
attr:
to make clear I want to set my attribute as plain text?
Was this page helpful?