Loading gitlab project takes up to 20s to open due to DOM content to load (more than 10k DOM content)
Gitlab-ce version 15.7.3.
Description:
For project which has been created in Gitlab, when I try to open an empty project with just a readme.MD file, it takes approximately 20 seconds to load all the contents.
Debug:
I enable the performance bar and it shows me that more than 10k DOM contents have been loaded ( see screenshot below)
For the project which load fast, it was imported from another gitlab instance or/and imported from basic local git repository.
I don’t know why for some project like the empty project one, it needs 10k+ DOM content to load
Ok I found the reason… I create an empty project in other namespace and it works perfectly.
The difference between the 2 namespaces was that I configured badges display for pipelines status. I then remove the badge display and It load perfectly.
The question now is why the badge status makes the loading page very slow…
An idea for testing - copy the URL for the badge, replace the template variables to raw text, and run a few curl commands on the CLI with time before to see how to long the requests take. Maybe there is a performance problem with that specific HTTP endpoint (and warnings in the logs maybe).