My website is experiencing a challenge.
Downloading images is taking too long, with the complete website taking around 20 seconds to fully load on my system. A loader is displayed but only hides once the complete website is loaded (after 20 seconds).
When I hide the loader at the document ready event, the website appears quickly, which is great for the user experience. However, some content is displayed without CSS for about 2 seconds, which is not ideal.
I am seeking a solution to hide the loader as soon as the CSS is loaded, even if the images are not fully downloaded yet.