4 ms·
I'm guessing their datepicker() function checks if the datepicker has already been attached or not. By using onfocus rather than attaching it on page load, the
by sim0n 14y ago
I'm guessing their datepicker() function checks if the datepicker has already been attached or not.
By using onfocus rather than attaching it on page load, the datepicker isn't loaded until it's required (gives a minor speed improvement I imagine).