Slow first open jitsi meet web page

Hello

I have installed jitsi meet using officially guide by docker-compose
It works well, I can create rooms and talk with more 5+ people…

But it’s very strange long opening my web page jitsi meet. it’s opening around 5-15 second
For example, I go to mydomain.com and it takes around 5-15 seconds after that I can easily create new rooms and invite other people.
Other people also have a long opening issue If they just open my created rooms link.
While opening it shows a black screen

I use ubuntu 20.04 with Nginx
There is one thing I first through may be a problem - I use Nginx reverse proxy
I installed Jitsi on my home server but set reverse proxy on my AWS.
Not sure if it’s a problem because all works well
Also maybe anybody knows how I can up video quality? I set Full but seem like lower quality (for video and screen share too)

My Nginx reverse proxy config (on AWS)

server {
    server_name myDomain;

location / {
        ssi on;
        proxy_pass http://MyHomeServer:8000;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
    }
    # BOSH
    location /http-bind {
        proxy_pass http://MyHomeServer:5280/http-bind;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
    }

    # xmpp websockets
    location /xmpp-websocket {
        proxy_pass              http://myHomeServer:5280/xmpp-websocket;
        proxy_http_version      1.1;
        proxy_set_header        Upgrade $http_upgrade;
        proxy_set_header        Connection "upgrade";
        proxy_set_header        Host $host;
        tcp_nodelay             on;
    }



    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = domain) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    server_name domain.com;
    return 404; # managed by Certbot


}

My screen when I open web bage

Check js console for errors.

You can see what takes time in the network tab in the developer tools.

@damencho

Thanks for reply

loading is not always slow
I can’t find a pattern, but sometimes it opens in a couple of seconds, and sometimes it lasts up to a minute

Please see my F12-> network

and Console