]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Call resize() only if the media-query has changed 4538/head
authorMartin Georgiev <martin@martingeorgiev.eu>
Tue, 25 Feb 2014 11:59:59 +0000 (13:59 +0200)
committerMartin Georgiev <martin@martingeorgiev.eu>
Tue, 25 Feb 2014 11:59:59 +0000 (13:59 +0200)
commit4d4d9ccb4e21033e869f73c494e6e1cb2a18b0ad
tree0c3a80166d771bfa5fa025bee8e796faab9c6093
parent1bcd8dfd9ab869093789641f4d885c0e0b9f21bc
Call resize() only if the media-query has changed

Currently the interchangeable content is reloaded every 50ms during window resize, if one has facebook, twitter or GMaps widgets as interchangeable content, things get nasty :) With this change content is reloaded only when the media-query changes.
js/foundation/foundation.interchange.js