Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerender all buttons #367

Closed
gtsop opened this issue Feb 6, 2015 · 1 comment
Closed

Prerender all buttons #367

gtsop opened this issue Feb 6, 2015 · 1 comment
Labels

Comments

@gtsop
Copy link

gtsop commented Feb 6, 2015

Jquery mobile parses the DOM to find all the elements with the attribue data-role in order to render them. Buttons are very easy to pre-render by writting all the appropriate classes jqm appends. For instance this element:

<a data-role="button" data-theme="b" data-mini="true" data-icon="gear"></a>

can be converted into this one:

<a class="ui-btn ui-btn-b ui-mini ui-btn-icon-right ui-icon-gear"></a>

which will decrease the time spent on rendering widgets and eventually the client's CPU load

@dBourgiotis
Copy link

#456

@d-mo d-mo closed this as completed Jul 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants