torgjoha wrote:Thank you for taking your time to explain the waterfall. I didn't know that the main document never get cached by Cloudflare.
Because it's not safe. What would happen when you update the text or add new images? Cloudflare only caches static assets, because it's safe to assume they don't change, and if they do, they will eventually get updated. Besides, with static assets, you would normally use versioning like "/jquery@
3.5.1/dist/jquery.min.js" which prevents the possibility of updated files getting cached.
torgjoha wrote:I have observed long loading time on different browsers. Server respons times is variable, it is on a shared hosting. When hesitating, page only shows heading (Photograpy by .....) and a rotating timer.
X3 needs to load JS entirely before it renders the page, and then when navigating pages after first page load, I'm sure you will notice your pages load much faster? Surely this is important. When clicking a link in your Wordpress page, the clicked page seems to take around 5 seconds before the page is entirely loaded. When clicking X3 link, sureless less than one second.
After navigating your website, I see definitely see something is very very slow. This is either your Wordpress website hogging resources, extremely slow hosting, or you are sharing with another website that is hogging resources. X3 is very fast, and you can check yourself from
www.photo.gallery/showcase/ ... Most websites there are on shared hosting, and they definitely load much faster than yours.
GoDaddy should normally be "acceptable", and that's why I think it's something else on the same service that is hogging resources. I doubt they will "increase server response" just by asking.
torgjoha wrote:On macrogallery.net settings, I have disabled the "Use CDN", this stops the
https://cdn.jsdelivr.net links. I am not sure this makes any difference. Anyway site loads very well without this enabled.
There is no logical reason why this would be faster. The only reason they might "seem" as fast, is because you are using Cloudflare, and in BOTH cases, these files will get cached on the SAME Cloudflare CDN effectively ... So it would basically be identical. The BENEFIT of using the jsdelivr CDN version, is that this item is already cached in hundreds of locations, and often in many visitors browsers. As an example, I'll take a random location, likely far away from yours:
JSdelivr version
55 ms load time
https://tools.pingdom.com/#5e0a7f6ec4800000 (results)
https://cdn.jsdelivr.net/npm/x3.photo.g ... /x3.min.js
Your self-hosted version
439 ms load time
https://tools.pingdom.com/#5e0a7f8bd1000000 (results)
https://www.macrogallery.net/app/public ... /x3.min.js
The above will change of course once you start refreshing, as your resources will also get cached, but for average clicks from various locations, the CDN version will load much faster.
Unfortunately, it all comes down to something on server delaying the response output. As in my previous post, you can even see that X3 fetches and creates the output fast.