WIP: Reduce the amount of work done when calling Element._update_state()
Description
Element._update_state() is called in a lot of places, and not all of the behaviour at an individual call needs to be done at that time.
Changes proposed in this merge request:
- Split the logic for calculating the weak cache key into a separate function
- Only calculate the weak cache key for
Loader._get_loader - Don't update the element state in _schedule_tracking (in its current state, it does nothing)
- Only update the source state after a fetch
This merge request is part of : #902 (closed)
Edited by Jonathan Maw