Is there a cross browser solution to trigger a function when a user alters the viewport size? I have a function that runs on load to set margins according to the viewport width, but also want it to recalculate if the viewport dimensions are altered.
Cheers Paul
$(window).resize(function() {...});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With