I have a very simple form that I'm displaying to the user after submission, but it takes forever to appear. I ran a JavaScript CPU profile and found out that there's a "GenerateLink" function in the LF.utils namespace that's running some crazy regular expressions. Below is a screenshot:
The form itself is pretty simple. The only thing unusual about it is that it has a hidden multiline field that has several hundred thousand characters (it's basically base64 image data). I'm 99% certain that the GenerateLink function tries to parse this text, because larger images result in longer base64 data, which in turn causes the function to take longer.
Is there a way around this? What does GenerateLink do? I'd appreciate some input from the forms team.
The purpose of having the base64 data in that field is to display uploaded images to the user.