Created
March 30, 2017 09:58
-
-
Save jimmy89Li/e8985f7361ddf903f4a140c3418ad464 to your computer and use it in GitHub Desktop.
jQuery resize trigger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( window ).resize(function() { | |
| ... | |
| }); | |
| $(function(){ | |
| $(window).trigger('resize'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment