Save map bounds in global variable.

FitBounds on window resize.
Included jQuery and Vanilla JS methods.