Question

I am using jQuery DateBox on my gwt project like this:

at my gwt.xml ui file I have input

<input type="text" ui:field="date" class="{resources.style.bottomSpacer}"
       data-role="datebox" data-options='{"mode":"datebox", "useFocus": true, 
       "useNewStyle":true, "themeHeader": "b", "themeButton": "b", "themeInput": "c"}' />

When opening the datebox on clicking the input element on tablet, it is reported to load very slowly.

What may be causing it? Maybe some javascript gets loaded only after click and it loads the js libraries on fly?

Was it helpful?

Solution

I played with the data-options field and found out that using only one theme and disabling animation made the element much faster even on PC. At least I could see the difference on my fast PC. So, on tablet the difference may be even bigger.

Here is the data-options when changed:

"mode":"datebox", "useFocus": true, "useNewStyle":true, "useAnimation" : false, "themeHeader": "b", "themeButton": "b", "themeInput": "b"

So, there all theme related is with b and the useanimation thing is new.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top