How to defer dmx css files for pagespeed optimisation?

Hi all,

Playing with some seo optimisation and ran into an issue, I am trying to defer local css files, looks like it should be like this:

<link rel="preload" href="dmxAppConnect/dmxValidator/dmxValidator.css" as="style" onload="this.onload=null;this.rel='stylesheet'">

but as soon as I apply this change, the page won't load at all.

Anyone tried this before and found a solution?

Gabor

Anyone? Maybe our CSS/SEO master @ben ? :slight_smile:

Check the discussion here please:

Hi Gabor,

It seems the issue is due to the href link missing / at the start.

<link rel="preload" as="style" href="/dmxAppConnect/dmxValidator/dmxValidator.css" onload="this.onload= null; this.rel = 'stylesheet'" />

Thanks Teodor!

No, it is related to the app root setting I think, tried both ways. At the end it looks like it is not a good idea/practice anyway to defer these, so I just leave it as it is. Thanks for trying to help!