Hey all,
I’ve finished a website on Kirby just now. Everything came together quite well, but ofc there are always little details that jump out when one has spent so much time working on the same thing.
One of them is the fact that my navbar reloads on every hyperlink click, including navbar-menu clicks, which are meant to only render new content below. The website is built with Bootstrap, and it features the well-known fixed header approach. I was wondering if there is a way with Kirby to selectively load only the content below?
The other point is: I have noticed that the website doesn’t load in a uniform way, but rather in a spotty manner. By that I mean that for example in one of the sections with links, the unlinked text loads first and the links shortly after. This gives the website a bit of a hacky feel. I have fixed this by adding a CSS animation that fades the content in, but it is still slightly noticeable depending on internet speed.
I was wondering if there is a way to improve this? I am guessing this happens because the browser is fetching the content on everyload and the PHP has to be processed everytime? I thought maybe the cache would help with this. I know minimizing the code helps with this kind of problem in CSS and JS, is there something similar to make Kirby faster?
Thanks for reading.