ionic-datepicker
ionic-datepicker copied to clipboard
Improvement: android open latency
First of all, congratulations for this awesome component!
I think it can be better, speeding up the open latency on android.
It's taking around 4 secs to open in Asus Zenfone 5.
Could you help me with that?
For sure!
I gonna make some tests tonight and I'll let you know If I figure out what is slowing the directive!
I found the problem but can't figure out how to fix it.
The problem is with tempates.js, I don't know if the Android is having problems trying to pre-compile the template cache or taking slowly to store/find it.
If I remove the code from the cache (particulary the parts with 'Expression') it open instantly.
What do you mean with "'Expression'"?
Like this.
<div class="col datepicker-day-of-month" ng-click="datepickerCtrl.changeType(\'date\')">{{datepickerCtrl.selectedDate | date: \'d\'}}</div>
"'Expression'" = date: \'d\'
Did you remove only filters or other expressions like ng-click?
Only the filters, I maintained the ng-clicks
We can try to remove those expressions and move them to JS. For example: {{datepickerCtrl.getSelectedDate()}}
I can do some tests, but only in 2 hours.
Do you want to create a new branch with some implemention and let me test it ?
I'll try to work on this tomorrow night but it's not guaranteed.
Do you want access as collaborator on this repo? I need some help. :)
For sure!
I will try to make some improvements, like a format tag to use your directive directly on input fields instead of a button!
Done! Thx!!!
Hi guys! Any updates about this? ;)
Not yet, sorry dude.
@xVishere, any updates?
Sorry for being late, I didn't worked on this git for a while, I gonna split the templates from the cache to get the better performance and submit a push tonight.
@xVishera any news about this?