we are using a frontmatter form in the Grav admin panel with a very large number of inputs (1000+).
It takes incredibly long time for it to load and interfacing with the form is very had. From our analysis, the form seems to firstly load the contents of the markdown using PHP. Then it uses JS to parse this data into HTML. We have all the list items collapsed by default, we only use them as fieldsets. But the current JS parses all of the internal list items as hidden items. We suspect that this unnecessary parsing is what takes such long time.
We would like to edit the JS function so that it only parses only the list items names, like this:
Only when you would click the uncollapse arrow, you would activate a JS which would parse that part of the form. That way the parsing shouldn’t take so long. Another solution would be to divide the list element into multiple pages.
The problem is that we cannot find the original JS functions which do this loading. Only thing we could find is “admin.min.js” which is minified so it doesn’t help us very much.
Could you please point us to the right direction? Thanks.