#5131 (Split main.js into recommended < 244 KiB parts)
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Résumé
Because sometimes Lino is slow because of the size.
Concepts sous-jacents
Commentaires
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) : test using insert window
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) : test
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) : The JS console says "Uncaught TypeError: this.props.responseCallback is not a function".
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) : Seems that even 23.9.1 ("split main.js into parts") is too fresh: When I create a comment and then submit the insert window, it remains waiting forever and does not submit. I can write comments using the "My comment" field. Which means that submit_detail works while submit_insert doesn't.
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) (1 reply) : Seems that the latest react commit ("utilize html-webpack-plugin") broke something. With lino-react 23.9.2, Jane showed a blue loading screen. I had to say "pip install -U "lino-react==23.9.1"".
- 3 ans, 1 mois ago by Luc Saffre about #5131 (Split main.js into recommended < 244 KiB parts) : I plan to upgrade Jane and maybe Froinde now, in order to test this on the field.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : This is done primarily. Could be optimized for more. I am putting this ticket to sleep.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : I still need to pack a lot of primereact components.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : I managed to compact them into 39 chunks so far.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : Also the benefit of this optimization is that network request for the chunks are made parallelly and hence will be loaded faster.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : I managed to break it up into 88 pieces and now I am stitching them back together, there are still 67 chunks, I hope to make them into about 10 chunks.
- 3 ans, 1 mois ago by Sharif Mehedi about #5131 (Split main.js into recommended < 244 KiB parts) : Created new Ticket #5131 (Split main.js into recommended < 244 KiB parts).