]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Optimise tight loop on foundation.js 4426/head
authorJack Mahoney <jackmahoney212@gmail.com>
Wed, 12 Feb 2014 03:31:51 +0000 (14:31 +1100)
committerJack Mahoney <jackmahoney212@gmail.com>
Wed, 12 Feb 2014 03:31:51 +0000 (14:31 +1100)
commitb5e8b6e5f07bed2c2b82526921b8aef70d31ff67
treed14aecc0bedc505615d149132be93131f4136c97
parent02eefe778a4f4b8842832698cf0cdbca2e9e07d2
Optimise tight loop on foundation.js

We should avoid jQuery selector repeats. Here I have cached the $('head') calls occurring on lines 17 and 18
js/foundation/foundation.js