Remove unnecessary calls to childBezirke
Description
On almost every page a request to xhr.php?f=childBezirke&parent=0
is sent which causes a database query. As far as I can see this is only necessary for the dialog that opens if you click the menu entry "Einem Bezirk beitreten". The number of requests and db queries can be reduced by only requesting this if the dialog is opened.
Goal
Less load on the server
Evidence
Open any page and check the request, e.g. in the network stats in your browser.
Solution
Only requests the regions when opening the dialog.
Links / references
- Backend function: XhrMethods.xhr_childBezirke
- Called from the frontend in becomeBezirk.js