Skip to content

Slow loading time of the homepage #3117

@hell1ano

Description

@hell1ano

My original issue is that my wiki.js site is very slow to load for the users, even trying locally on the same host as the installation.
Also note that I'm running an offline-installation with sideloaded assets, everything does despite the load times work very good with this usecase.

Now to the issue, it seems to be everytime the client/browser requests the homepage.
While I'm at a page accessing different features the site is very responsive, for example in the Admin-panel (/a/*) changing between the pages are super quick.
After analyzing the nginx logs of the client requests, I see the main difference being that the clients keep doing "POST" queries to the /graphql URL when entering the wiki.js page.
This alone seem to be the performance hog making the website run slow.

After doing a manual check on the graphql URL I cannot even get an response from this interface (I thought this is intended as afterall it's an offline installation).

However due to the clients still trying to use graphql for something the load time of the webpage is almost 15 seconds for the homepage. Once you have landed on the site the navigation itself is fine and very responsive.

To Reproduce
Steps to reproduce the behavior:

  1. Go to your wiki URL
  2. Check the browser/http log
  3. Check for POST entries for /graphql entries

Expected behavior
I would like to see decent loadtimes, is there any possibility to turn of the graphQL POSTs?
Option two is if there is any way to get it to work during an offline installation, is it possible?

Host Info (please complete the following information):

  • OS: Windows Server 2019
  • Wiki.js version: Latest release
  • Database engine: Latest stable Postgres

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions