Closed antdementyev closed 2 years ago
This is just because we have the plugin bundled in. See #661 which would allow users to opt-in to all packages used, thereby removing unnecessary bloat for users who don't want features like these and instead want basic HTML rendering.
Open since May... Until it is done, is there only one way for the issue: just accept it?
Currently yes, unless you wish to clone it and remove the dependency by hand, and finally point your pubspec to the path of the cloned package.
Because it is such a massive change it has been open for that long, and plus the maintainers of the package (@erickok and/or @ryan-berger) have been pretty busy recently, they have not had time to review those big PRs. Apologies for the inconvenience but we don't really have control over what things our dependencies load, and plus there is not much alternatives to show LaTeX content in Flutter at the moment.
ok, thanks for a quick reply
I'm sorry I haven't been able to work much on the package. It will get much better mid August.
A workaround is to override and remove this dependency.
Did you have a chance to take a look on this issue @erickok ? Reducing payload could really help making web loading time faster!!
It's connected to the modularisation of the library, which is big but the most important thing we are (slowly) working on.
Modularization is now complete with v3.0.0-alpha.2!
Describe the bug:
Using of the package adds unnecessary KaTeX fonts from flutter_math_fork to built resources in web. It increases the size and delays the loading of the Webapp.
HTML to reproduce the issue:
Reference flutter_html in dependencies:
Use it somewhere in code, e.g. in simple Hello-World created by Android-Studio
Build web project
Built web contains a lot of KaTeX fonts with 660 kB even if they are nowhere used or referenced:
and they all are added to built
build/web/assets/FontManifest.json
Html
widget configuration: See example aboveExpected behavior:
No unused fonts and other resources should be added to built resources
Device details and Flutter/Dart/
flutter_html
versions: