We have a form on which our grantees report to us detailed information on their staff members. A typical user may have 100 staff member records in five office locations and need to update information on, or create new records for, 20 of those staff members. We’ve received multiple complaints that, after 15 minutes or so of use (editing and adding records), the form runs so slowly as to be nearly unusable; the form can take seconds to respond to a key press or a mouse click. Closing the browser and reopening seems to fix the problem. It’s possible that simply loading a different form and then reloading the problematic form also fixes the problem; we haven’t confirmed that.
The form is accessed via IFRAME in a Visualforce page. On initial load, the Skuid form displays a list of office locations. When the user selects an office, a list of the staff members at that office is displayed at the bottom of the form. Selecting a staff member shows a popup containing a Skuid staff editor form on which users can edit and save changes to staff members.
Referring to the Skuid Page Performance Guide, I kept my Chrome developer tools open while working on the form. The most striking thing I noticed was a barrage of XHR calls to https://[our domain].force.com/apexremote. These started around the time I did my first edit of a staff member. As I continued to work on the form for several minutes, editing multiple staff records, I started to notice a slowdown in the form’s performance. I also noticed that the XHR calls were continuing to take place but at a slower pace, and that each one was taking longer to complete. At first, they averaged maybe 250 ms. By the time I stopped working, the average was more like 1.6 s. When I examined the breakdown of the time for each of these calls, it was uniformly the case that the vast majority of the time was in the “Waiting (TTFB)” category. I wonder if these calls and the increasing amount of time required to complete them might be connected to the performance issues of the form.
Any guidance that will help us deliver a usable form to our users will be greatly appreciated.
Question
Performance issues with prolonged use of form
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
