Dashboard javascript file is loaded when no Photos widgets are used #2674
Labels
0. Needs triage
Pending approval or rejection. This issue is pending approval.
bug
Something isn't working
Describe the bug
Even when there are no widgets on my Dashboard,
apps/photos/js/photos-dashboard.js
is loaded. It's a large file, and seems to be unnecessary when there are no Photos widgets active, so will have a significant impact on load time - both downloading and parsing that file.Loading the Photos app shows that
photos-main.js
is downloaded, so it is a different file as opposed to being pre-emptively downloaded.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The file should not be loaded when there is no Photos related widget on the dashboard.
Screenshots
Desktop (please complete the following information):
Additional context
The file is really big at over 4mb (that's another topic 😅). Even if I had the On This Day widget loaded, it's just showing an image so I'm not sure why it's that large?
The text was updated successfully, but these errors were encountered: