[TASK] Use getElementById where feasible
It's safe to use getElementById() instead of querySelector() in case an element is fetched by its ID. Numbers for nerds: getElementById() is nearly 1.5x faster than querySelector(). To be fair, both functions are really fast with executing multiple million operations per second, thus nobody will notice a performance impact. See https://www.measurethat.net/Benchmarks/ShowResult/106740 Resolves: #91254 Related: #91183 Releases: master Change-Id: I2ed590d20c9af66ce818f012ac73ec45c5c9fa55 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64384 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- Build/Sources/TypeScript/adminpanel/Resources/Public/TypeScript/AdminPanel.ts 1 addition, 1 deletion...ript/adminpanel/Resources/Public/TypeScript/AdminPanel.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/GroupElement.ts 1 addition, 1 deletion...rces/Public/TypeScript/FormEngine/Element/GroupElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/InputLinkElement.ts 1 addition, 1 deletion.../Public/TypeScript/FormEngine/Element/InputLinkElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/SelectMultipleSideBySideElement.ts 2 additions, 2 deletions...ipt/FormEngine/Element/SelectMultipleSideBySideElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/SelectTreeElement.ts 2 additions, 2 deletions...Public/TypeScript/FormEngine/Element/SelectTreeElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/TextElement.ts 1 addition, 1 deletion...urces/Public/TypeScript/FormEngine/Element/TextElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/TextTableElement.ts 1 addition, 1 deletion.../Public/TypeScript/FormEngine/Element/TextTableElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Notification.ts 1 addition, 1 deletion...cript/backend/Resources/Public/TypeScript/Notification.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ToggleSearchToolbox.ts 1 addition, 1 deletion...ackend/Resources/Public/TypeScript/ToggleSearchToolbox.ts
- Build/Sources/TypeScript/backend/Tests/NotificationTest.ts 1 addition, 1 deletionBuild/Sources/TypeScript/backend/Tests/NotificationTest.ts
- Build/Sources/TypeScript/beuser/Resources/Public/TypeScript/BackendUserListing.ts 1 addition, 1 deletion.../beuser/Resources/Public/TypeScript/BackendUserListing.ts
- Build/Sources/TypeScript/dashboard/Resources/Public/TypeScript/DashboardModal.ts 1 addition, 1 deletion...t/dashboard/Resources/Public/TypeScript/DashboardModal.ts
- typo3/sysext/adminpanel/Resources/Public/JavaScript/AdminPanel.js 1 addition, 1 deletion...sext/adminpanel/Resources/Public/JavaScript/AdminPanel.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/GroupElement.js 1 addition, 1 deletion...rces/Public/JavaScript/FormEngine/Element/GroupElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/InputLinkElement.js 1 addition, 1 deletion.../Public/JavaScript/FormEngine/Element/InputLinkElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SelectMultipleSideBySideElement.js 1 addition, 1 deletion...ipt/FormEngine/Element/SelectMultipleSideBySideElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SelectTreeElement.js 1 addition, 1 deletion...Public/JavaScript/FormEngine/Element/SelectTreeElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/TextElement.js 1 addition, 1 deletion...urces/Public/JavaScript/FormEngine/Element/TextElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/TextTableElement.js 1 addition, 1 deletion.../Public/JavaScript/FormEngine/Element/TextTableElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/Notification.js 1 addition, 1 deletion...ysext/backend/Resources/Public/JavaScript/Notification.js
Please register or sign in to comment