Improve performance and reduce loading time.
Description
- With (see below) we always init functions with every requests and sometimes we call services (extra https requests that can takes time to complete) in places that we don't need to.
$(function () {
someFunction()
})
Functionality that must be called on specific page/route only:
-
The gitlab ( /api/gitlab
) api should be only consumed from the /dashboard and the /changelog pages. -
The logo-icons ( /api/logo-icons/
) api should be only consumed from the /logo-icons page. -
The news controller should be only consumed from /dashboard page. -
The designspecs controller should be only consumed from /designspecs page.
It can be that we call some other functions on places we don't need to.
Please make sure to check which other functions we execute when there's not need to.
I confirm that I have
-
Entered all the required information to help maintainers easily verify this issue. -
Added a label describing what it is affecting. -
Not added the label confirm, since this label will be added by maintainers or issue reviewer.
Edited by Sorin