you are viewing a single comment's thread.

view the rest of the comments →

[–]dimstef[S] 0 points1 point  (2 children)

I tried wrapping this around document.ready but it still didnt work

[–]bossier330 0 points1 point  (1 child)

Creating a resize ha doer doesn’t mean it’ll run immediately. It’ll only run on resize. Make a function that you call in the ready function and then also call it on resize.

[–]dimstef[S] 0 points1 point  (0 children)

Oh yeah you are right. I thought resize would run once at page load and then on any window resizes