IulianIV / mtp

MTP web-app with multiple functionalities
GNU General Public License v3.0
0 stars 0 forks source link

Generate modals more dynamically #43

Open IulianIV opened 2 years ago

IulianIV commented 2 years ago

Until you get the grasp of using a JS framework or Flutter for front-end, reduce the HTML output by making modals more dynamic. It should be possible to render them on click using jQuery or just regular pure JS. This might also enable you to be able to use highlight.js to have syntax highlighting.

Making modals more dynamic will reduce the overall file size, besides the HTML clutter.

Related to #39

IulianIV commented 2 years ago

With commit ef8aa00 HTML density has been reduced by approximately 20% by creating templates of recurring modals and merging highly similar modals.