Kibana behind HTTPS - "Kibana did not load properly"

Hi, i recently put Kibana behind a reverse proxy (Netscaler) to have kibana over HTTPS.

However, i get the following whenever i go to the https version of the kibana UI:

Kibana did not load properly. Check the server output for more information.

If i reload the site two times i eventually get to the login page and can succesfully log in. Has anyone else ever experienced this? How can this be fixed?

What do the logs say? This sounds more like your reverse proxy is having issues.