after all the help I got here in the forum, I finally clean up my page for the hosting.
On thing came to my attention I haven’t noticed before.
I have a header and a footer wich are on every template the same.
If I now click on one element in my navbar(header), it looks like the whole header loads again. It flickers for a second. I know that in technically open up a new side every time, but the css file is the same.
Do I have to cache them? or how to I do it?
the page is running on a valet server hosted on my machine. So it normally shouldn’t have long loading times.
Not sure i understand - every webpage does this when you click from page to page unless you load stuff in via ajax or via something like Swup or Barba. Can you give more information?
That looks to me like the scroll bar kicking in after the page or an element on the page gets its correct height. I dont think its the header realoading (it cant really, unless the whole page reloads), its more the page realising its dimensions. what is going on the on the rest of the page? Any external javascripts or stuff like that?
OK, but i saw a product hunt button. Is that just a simple button? It feels like there is a delay due to an external script being slow to loads, causing the illusion that the head and footer are reloading (but they cant so its more like the whole page is taking a while to load).
I dont think its valet, i use that myself and dont see this (its superfast).
Something is blocking the page load. Is the javscript in the head or the footer? If its in the head, try moving it to just before the closing body tag. HTML gets read and executed line by line by the browser and rendered as it goes. With the script in the head, it waits for the script to run before loading the rest of the page. If its in the bottom, it allows the page to load first.
The styles are cached by the browser anyway, so it’s more a question of fingerprinting, so that styles are reloaded by the browser if there are any changes in the future.
What I noticed is also the 404 on the fonts loaded by the default.css scripts. I guess the file paths are not correct anymore after compilation.
Yes, and check the other console errors, there are also images that are not found.
And another weird thing is that when I open the address http://studierepunktdesign.de/assets/images/icons/podcast.png it shows this page, which should not happen: