-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
3.2
Since 3.2 landed, I have noticed that each page loads causes 3 Ajax requests to be made. Those are fetching the flash messages (also called notifications) to display, the count of unread notifications, and the count of unread messages.
Because those are in separate APIs, it's understandable that they are not bulked, however the AMD Ajax layer could take care of this and group them if they occur in a relatively short amount of time between one another.
In general, manually bulking Ajax requests is difficult because of the separation of concerns a developer would place in their API. For instance, if you had a function to submit an ajax update, and another function to fetch a list of objects to refresh your view, it is unlikely that your code would combine both requests in one.
In short, we can bulk Ajax requests, but we are not really using this feature very well.
- has a non-specific relationship to
-
MDL-57968 Multiple unnecessary Messaging AJAX requests (core_message_get_unread_conversations_count, message_popup_get_unread_popup_notification_count) on all pages
-
- Closed
-
-
MDL-57009 core/template AMD - template in loop results in bad performance (multiple AJAX requests)
-
- Closed
-
- Testing discovered
-
MDL-62678 Unnecessary AJAX request core_fetch_notifications on all pages
-
- Closed
-