Two caveats I would put is: we can do self-development and learning during our job hours, I'd argue it's a right that is usually understood and well supported by our workplaces.
A somewhat darker point: in 20 years there will still be devs writing jQuery, but it will only be a super small fraction of the devs that were in it 10 years ago.
The same way we have devs writing new COBOL code now, and there will still be some 50 years from now, but you can't expect 20% of our field to be leading a successful career in COBOL for the next decades. It will be a selected few that get to keep doing that job for that length of time, the rest will have to move to something else either way.