Optimise Emoji.js
Currently we need for all icons a file called digest.json
as they need an asset path for the polyfill images + meta information. Problem is the file is imported into the bundle which makes the emoji bundle one of the biggest (108KB gzipped). So I would suggest optimising the emoji.js through the following steps :
-
Optimise digest.json Content to make it smaller -
Get rid of asset hash by putting images in public path as they never change -
Load digest.json async -
Save digest.json in Local Storage maybe (Compare Cache/Local Storage)