Poor FCP scores #12

Open
opened 2026-04-29 01:39:07 +00:00 by mikael-lovqvist · 0 comments

This is due to large render blocking transfers. Deferring JS is a clear win we could do early. What to do with CSS is not decided, we could keep it as is, we could defer it risking an unstyled flash and large CLS or we could have a rudimentary much smaller CSS that it loaded first.

Another issue is that version controlled assets have short cache times which we can fix with nginx config

location /assets/ {
    proxy_pass http://gitea;
    
    if ($arg_v) {
        expires 1y;
        add_header Cache-Control "public, immutable";
    }
}
This is due to large render blocking transfers. Deferring JS is a clear win we could do early. What to do with CSS is not decided, we could keep it as is, we could defer it risking an unstyled flash and large CLS or we could have a rudimentary much smaller CSS that it loaded first. Another issue is that version controlled assets have short cache times which we can fix with nginx config ```ini location /assets/ { proxy_pass http://gitea; if ($arg_v) { expires 1y; add_header Cache-Control "public, immutable"; } } ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: efforting.tech/gitea.efforting.tech#12