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 ?
Teodor
October 4, 2024, 6:42am
3
Check the discussion here please:
It would be great to get a bit more support for this request. Please vote!
This is the code that Wappler produces:
<!doctype html>
<html>
<head>
<base href="/">
<meta charset="UTF-8">
<title>Untitled Document</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous" />
<meta name="viewport" content="width=device-width, initial-scale=1, s…
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'" />
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!