Problem/Motivation

The purpose of using the autocomplete feature is to speed up the rendering time of the select2 widget.
Since Select2EntityReferenceWidget extends core's OptionsSelectWidget, all possible values will be loaded on page load.

On a page with 10000 referenceable entities, this really slows down the page load.

Proposed resolution

Don't load all referenceable entities to initialize the widget, only the default values.

Comments

chr.fritsch created an issue. See original summary.

chr.fritsch’s picture

Status: Active » Needs review

chr.fritsch’s picture

Status: Needs review » Reviewed & tested by the community

Adding review credits

  • chr.fritsch authored a89b17c on 8.x-1.x
    Issue #3005889 by chr.fritsch, daniel.bosen: FieldWidget with...
chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.