Initialization of 2 datepickers is very slow

I am using Angular-UI datepicker .

I have a template that initializes 2 datepickers.

However, I noticed that it took over 100ms to initialize both on the desktop.
This is worse than using a two year old mobile device.
I have the following declaration (2x):

<input type="text" ng-model="schedule.start" datepicker-popup date-disabled="disabled(date, mode)"/>

      

However, when I remove the directive datepickerPopup

, it takes less than 100ms.

Is there a trick to improve directive performance datepickerPopup

?

+3


source to share


1 answer


There is a pull request here that includes a date picker popup in ng if this needs to be fixed. The effect comes from the DOM displaying all the calendar items.



+4


source







All Articles