DEV Community

Discussion on: Smaller and faster React Native apk

Collapse
 
tombyrer profile image
Tom Byrer

Thanks for the tips!

You can usually get even smaller image sizes by using a tool like Win: FileOptimizer or OSX: ImageOptim. They will use more optimizers after to shrink another 5%, but takes more time. Also, most PNGs look fine if they are 8bit, so there is more savings if you down-sample from 24bit.

Can you give more details about how you shrink your fonts please? I noticed Google's font CDN does this.

Collapse
 
witalobenicio profile image
Witalo Benicio

Nice thoughts on image optimization.

I've used a font from Google. Montserrat.
I had to download all font sizes and put on my app, the problem was that when I've downloaded it, each file was like 400Kb.

That's because they have symbols, chinese chars, and a lot of other chars. Mostly, we use just Latin chars. It's been a while since I did this optimization, but I've used pyftsubset. I just followed the documentation and run a command to delete unnused chars.