Commit after DOM hit reduction and document ready addition