Metabase Iframe is slow to load

Runing the latest version of Metabase on docker or On barmetal, I got the following.
First page load is very slow it takes about 30s most of it to load js resources that aren't cashed so every time it reload these resources.
my server is 8 cores 16G ram, docker is 5 core 8 G ram.
the real problem is in embedding dashboards on other sites, it takes too long to load and it's not practical.
Is there a way to cash these js resources.

currently there only one user and it's not a data issue since I'm loading very small data

"browser-info": {
"language": "en-US",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36",
"vendor": "Google Inc."
"system-info": {
"file.encoding": "UTF-8",
"": "OpenJDK Runtime Environment",
"java.runtime.version": "",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "",
"java.version": "",
"": "OpenJDK 64-Bit Server VM",
"java.vm.version": "",
"": "Linux",
"os.version": "5.10.47-linuxkit",
"user.language": "en",
"user.timezone": "GMT"
"metabase-info": {
"databases": [
"hosting-env": "unknown",
"application-database": "h2",
"application-database-details": {
"database": {
"name": "H2",
"version": "2.1.214 (2022-06-13)"
"jdbc-driver": {
"name": "H2 JDBC Driver",
"version": "2.1.214 (2022-06-13)"
"run-mode": "prod",
"version": {
"date": "2023-09-18",
"tag": "v0.47.2",
"branch": "release-x.47.x",
"hash": "536c24c"
"settings": {
"report-timezone": null

Not sure of the problem, but before you do anything get rid of H2 and use a proper database for the system side of things.

I've migrated to Postgre but no differences, the problem still

please use a reverse proxy to gzip those assets. An example could be nginx with this config

I'm using IIS and I've enabled compression

Then your IIS is not working as it should, since, compressed, those assets should take 1.4-1.5 MB

Check our public demo at