Tuesday, January 7, 2014

Re: Why are GWT widgets heavy?

@Thomas: thanks for the insight, exactly what I was looking for. I wasn't aware that DOM manipulations could have "such" a cost.
It's could to be more aware of this during development, especially for mobile apps.

This DOM manipulation cost greatly depends on the browser! If you target Chrome + FireFox then DOM operations are as fast or faster than innerHTML if you make sure to work on the DOM structure while it is not attached to the document. If its attached, then its always slow as hell because the browser must do layout recalculations and redrawing after each append/removeChild call.

-- J.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate