Dynamics 365 Unified Interface Performance Center
The Unified Interface performance center is a great tool for troubleshooting performance issues, specially if you have complex forms with lots of custom JavasScript, it will help you analyse in great detail how long your form is taking to load, looking at each function and form component.
To enable the performance center tool, press ALT + SHIFT + Q after the form is fully loaded, then a small bar should appear on the top right corner, click on Page load and the full application will load.
The tool is incredibly useful to troubleshoot performance issues, if for some reason you can't get the tool to load add the &perf=true parameter to your URL and the tool should load by default.
Below an example of a custom function "FormOnload" taking 371ms to complete:
There is also a console tool which will display warnings and errors when you click on the cog icon:
Hope this was helpful.