Hacker News new | ask | show | jobs
by slimsag 1992 days ago
Why does this blog have a loading bar that gets stuck around 99% for me? Every request has loaded and is cached by my browser, yet it hangs at 99% artificially for like 30s.
4 comments

If you do client side “rendering” (which means that you get page content from the server in json format, and generate the html from javascript), you have to show a placeholder until the webpage content gets generated. Otherwise the user sees an incomplete page with elements jumping around for a fraction of a second on load.

But the placeholder might get stuck if anything goes wrong.

Personally, I hate it. Better to use static html for blog content.

It's this new frontend craze of putting artificial loading bars as a placebo effect. Github does it, for example. The site is just really slow, and the status bars are rarely, if ever, hooked up to the actual loading metrics.
I don't know why it does that, but I looked at it and it's using something called "Pace Progress Bar".

Source for it: https://github.com/CodeByZach/pace

That's all I see as well. Fortunately the direct CVE link works.