-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
Problem
With fast 3g enabled in devtools it takes 9s to load main js bundle which contains 737kb. Bundle size is huge and need to be compressed by gzip
Solution
Essentially we can just add gzip compression in default.conf not only for js files, speeding up all the file formats eventually
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types
application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;
Metadata
Metadata
Assignees
Labels
No labels