I have a slow load time in a node form and I suspect the reason is that I am populating entity reference select lists using views & therefore a number of queries are being run to populate those select lists when the form is loaded.
As most of the entity reference fields don't need to be on the node-add form but only the node-edit form I tried using unset($form['field']) and hook_form_alter to remove those fields from the $form array but there is still a slow load time.
Could it be that the fields that get unset in hook_form_alter are still running their views queries?
Thanks very much and have a great day!