{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/fa72320f7fd01aa7d743768f85ccf9ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fa72320f7fd01aa7d743768f85ccf9ea","url":"https://api.github.com/users/jblas","login":"jblas","id":394996},"milestone":{"state":"open","open_issues":10,"url":"https://api.github.com/repos/jquery/jquery-mobile/milestones/10","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/4ec3e17536d217f2367be3aebb72a72b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4ec3e17536d217f2367be3aebb72a72b","url":"https://api.github.com/users/toddparker","login":"toddparker","id":359929},"title":"1.0 Final","description":"","number":10,"closed_issues":27,"created_at":"2011-10-19T15:22:23Z"},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/fa72320f7fd01aa7d743768f85ccf9ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fa72320f7fd01aa7d743768f85ccf9ea","url":"https://api.github.com/users/jblas","login":"jblas","id":394996},"labels":[{"name":"4 - High","color":"ff7519","url":"https://api.github.com/repos/jquery/jquery-mobile/labels/4+-+High"}],"updated_at":"2011-11-07T22:05:31Z","closed_at":null,"comments":2,"url":"https://api.github.com/repos/jquery/jquery-mobile/issues/2853","body":"Now that most components within a page are decoupled, they are each doing their own traversal through the DOM of the page being enhanced whenever a pagecreate or create event is dispatched. For large documents this could be a problem. Prior to the decoupling, the page code used to search for all data-role elements, as well as all form elements and then filter these lists for each component which was much faster.\r\n\r\nWe need to look into the possibiity of creating a jquery.mobile.role.js plugin that can gather this info from the page once, and then either add these lists to the pagecreate or create events so that the other components can use them. Of course this would mean its pagecreate/create handlers would need to be registered first before all others.\r\n\r\nAnother possibility would be to have the components not listen for pagecreate and just listen for a single event like \"create\" that gets dispatched by the role plugin or by a developer.","html_url":"https://github.com/jquery/jquery-mobile/issues/2853","title":"Improve page enhancement performance","number":2853,"id":2058920,"created_at":"2011-10-26T17:00:26Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/fa72320f7fd01aa7d743768f85ccf9ea?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fa72320f7fd01aa7d743768f85ccf9ea","url":"https://api.github.com/users/jblas","login":"jblas","id":394996},"updated_at":"2011-11-07T22:05:31Z","url":"https://api.github.com/repos/jquery/jquery-mobile/issues/comments/2660550","body":"@bcardarella\r\n\r\nBy multi-page, do you mean inside the same application document? This change should make both embedded/external pages enhance faster by reducing the number of times the page DOM is traversed.","id":2660550,"created_at":"2011-11-07T22:05:31Z"}}