Closed meduzen closed 11 months ago
Enhancement in Security and Performance
In src/js/modules/Settings/index.js
, we've switched usage of innerHTML
to textContent
. This not only makes our application safer from potential security risks but also can boost performance, as it doesn't need to parse HTML.
Improved Safety in Wallet Module
Similarly, in src/js/modules/Wallet.js
, the substitution of innerHTML
with textContent
heightens both the performance and safety aspects. It helps prevent any unwanted HTML content from being inadvertently processed.
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
Everything | 284.56 KB (0%) | 5.7 s (0%) | 1.2 s (-20.53% 🔽) | 6.8 s |
HTML | 4.4 KB (0%) | 88 ms (0%) | 0 ms (+100% 🔺) | 88 ms |
CSS | 3.58 KB (0%) | 72 ms (0%) | 0 ms (+100% 🔺) | 72 ms |
Fonts | 58.1 KB (0%) | 1.2 s (0%) | 0 ms (+100% 🔺) | 1.2 s |
Sounds (FLAC) | 77.82 KB (0%) | 1.6 s (0%) | 0 ms (+100% 🔺) | 1.6 s |
Sounds (WAV) | 121.02 KB (0%) | 2.5 s (0%) | 0 ms (+100% 🔺) | 2.5 s |
It has better performances for text-only nodes as it doesn’t need to be parsed as HTML.