I have a big LiveCycle form that's loading like a pig. It weighs in at 620KB with ~1500 lines of Javascript. No server involved - this is loading a pdf (XDP format) into Reader on the client.
The load time is over 30 seconds. However 25 seconds of this seems to be Adobe Reader doing, well who knows? The flow as described by Adobe seems to be.
Here is my self-created log file (the first bullet points, the time is MM:SS:milliseconds)
28:07:350 **First Initialization
- Triggered by an 'initialize' event tied to the first field element that gets called (determined through trial and error)
- For these four seconds I do some initialization and walk the object hierarchy tree*
28:11:597 Form initializations starting
- Done with my initial stuff
- For next 25 seconds I have zero, I mean no initialization calls tied to objects in the object hierarchy
- What is Reader doing?
28:36:531 Form validation occurring
- Triggered by the first 'validation' event - so no initialization is over
- Turns out this is real quick
28:36:575 Form initializations complete
- 'Form:ready' -- ready to run
Thanks for any and all ideas!!!
(Btw, I have a another, similar form I'm creating at 420KB/1500 lines of Javascript that fully loads in under 5 seconds!)
*A neat trick I haven't seen before. I do a lot of hiding and showing of subforms (e.g., a tab bar, radio button sensitive showing of subforms, etc.) but want to keep the native validation working. Turns out that a field in a hidden subform that is mandatory for validation will still be triggered. So you have to turn off that validation check when you hide a field. More work, but the default validation now works!