Fixes #17570 - Only execute `onContentLoad` once per page
When an event is triggered, jQuery attempts to execute the on<name> method if it exists for event <name>. We were also manually triggering the `onContentLoad` every time the `ContentLoad` event was triggered, leading to the function executing twice on every page. This commit removes the explicit event listener so that the function will only execute once.
(cherry picked from commit 83afcbecbdaac702253f494ff07351a74308b6be)
Related issues
Bug #17570: onContentLoad() is called twice on every page
Fixes #17570 - Only execute `onContentLoad` once per page
When an event is triggered, jQuery attempts to execute the on<name>
method if it exists for event <name>. We were also manually triggering
the `onContentLoad` every time the `ContentLoad` event was triggered,
leading to the function executing twice on every page.
This commit removes the explicit event listener so that the function
will only execute once.
(cherry picked from commit 83afcbecbdaac702253f494ff07351a74308b6be)