This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Performance: changePage() searches the entire document for :focus elements #1560
Closed
Description
In changePage() I see this:
$( window.document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur();
This will cause JQM to search the entire document every time we change pages just to release keyboard focus. Instead, we should probably be using a live("focus") handler and tracking the currently focused element so we don't have to crawl the document.