ChrisVilches/Beautiful-Bridges

Compress textures

Closed this issue · 2 comments

Textures are loaded using esbuild using the Base64 loader. The lengths of the strings are:

console.log(steelTexture.length) // => 7127
console.log(groundTexture.length) // => 7011

Compress to improve loading times.

And from webpack (after migrating from esbuild):

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  app.js (1.72 MiB)

Removed textures from the bundle (and it's still big, so the problem is somewhere else)