I do not see the problem of the Largest Paint image on the page that you have shown. Usually Lighthouse will tell you the name of the problem image in which case all you have to do is to pre-load it as in <link rel="preload" fetchpriority="high" as="image" href="/assets/images/original/thumbs/1.jpg" type="image/jpg">
Layout shifts are usually caused by images that do not have the width and height specified. I do not see that problem in the page.
What I do see is the is the likes of <p dmx-html="scGetpage.data.queryGetPage.PageIntro">A nice paragraph</p>
The problem here is that the rendering engine cannot presume how much space to allow for content that comes from the server via JavaScript. The page shift comes when that content is available.
You may consider server side rendering instead. This will most certainly improve SEO.
But I have to load the image dynamically. I want to load the first image from the slideshow here
This is how I load the slideshow.
How do I get the first image into the preload? dmx-bind:slides="scGetpage.data.queryGetBanner" slide-url="'/assets/images/'+var_banner_size.value+'/'+image" dmx-bind:width="var_banner_width.value" dmx-bind:height="var_banner_height.value" slide-title="imageTitel" slide-description="imageDescription"
Sorry, it is approaching midnight in Aus. This is the last reply for tonight.
But before leaving you, there is not much you can do about the reduction of CSS. There are programs available to do this. I have never worried about it.
Great to see WEBP being used. Only the width and height has be expressed in absolute values like width: 1200; height: 484 This is so that the width and height are known to determine the aspect ratio.
Normally, scripts are not preloaded (with the exception of those scripts that are required immediately), they should be deferred if in the <head> section. Otherwise they can be placed at the bottom of the document.