Optimise tight loop on foundation.js
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
advisorwebsites/foundation-sites-6,sitexa/foundation,JihemC/Foundation-Demo,PassKitInc/foundation-sites,iwikmu/foundation,sitexa/foundation,oller/foundation,jaylensoeur/foundation-sites-6,asommer70/foundation,DouglasAllen/css-foundation,signal/foundation,NeonWilderness/foundation,atmmarketing/foundation-sites,glizer/foundation,sethkane/foundation-sites,denisahac/foundation-sites,celsoyh/foundation,jaylensoeur/foundation-sites-6,ucla/foundation-sites,djlotus/foundation,oller/foundation,aoimedia/foundation,carey/foundation,atmmarketing/foundation-sites,zurb/foundation,walbo/foundation,mbarlock/foundation,ysalmin/foundation,ysalmin/foundation,zurb/foundation-sites,samuelmc/foundation-sites,elkingtonmcb/foundation,glunco/foundation,natewiebe13/foundation-sites,Teino1978-Corp/Teino1978-Corp-foundation,Iamronan/foundation,rxfork/foundation,elkingtonmcb/foundation,laantorchaweb/foundation,0111001101111010/foundation,djlotus/foundation,Ilyes512/foundation,aoimedia/foundation,jxnblk/foundation,2fd/foundation-stylus,youprofit/foundation,robottomw/foundation,r14r-work/fork_foundation_master,vita10gy/foundation,zurb/foundation-sites,rxfork/foundation,Teino1978-Corp/Teino1978-Corp-foundation,walbo/foundation,stanwmusic/foundation,hummingbird-me/foundation-sites-6,Teino1978-Corp/Teino1978-Corp-foundation,themccallister/foundation,pwnall/foundation-sites,karland/foundation-sites,carey/foundation,glunco/foundation,gnepal7/foundation,jamesstoneco/foundation-sites,ucla/foundation-sites,zurb/foundation,elkingtonmcb/foundation,wikieswan/foundation,Owlbertz/foundation,Mango-information-systems/foundation,carey/foundation,lizzwestman/foundation,Teino1978-Corp/Teino1978-Corp-foundation,r14r/fork_foundation_master,Larzans/foundation,leo-guinan/foundation,hboers/foundation,aoimedia/foundation,NeonWilderness/foundation,claytonrodgers/foundation,anbestephen/foundation,marcosvicente/foundation,pdeffendol/foundation,sethkane/foundation-sites,colin-marshall/foundation-sites,barnyp/foundation,RichardLee1978/foundation,ysalmin/foundation,anbestephen/foundation,jxnblk/foundation,a-dg/foundation,stanwmusic/foundation,dimamedia/foundation-6-sites-simple-scss-and-js,glizer/foundation,vrkansagara/foundation,RichardLee1978/foundation,DaSchTour/foundation-sites,MarcGuay/foundation,RichardLee1978/foundation,djlotus/foundation,Iamronan/foundation,MarcGuay/foundation,sashaegorov/foundation-sites,colin-marshall/foundation-sites,karland/foundation-sites,andycochran/foundation-sites,vita10gy/foundation,youprofit/foundation,MarcGuay/foundation,samuelmc/foundation-sites,natewiebe13/foundation-sites,themccallister/foundation,jamesstoneco/foundation-sites,stanwmusic/foundation,jeromelebleu/foundation-sites,ibroadfo/foundation,yohio/foundation-sites-6,vrkansagara/foundation,labr1005/foundation,mbarlock/foundation,marcosvicente/foundation,denisahac/foundation-sites,DouglasAllen/css-foundation,ibroadfo/foundation,laantorchaweb/foundation,JihemC/Foundation-Demo,jeromelebleu/foundation-sites,Ilyes512/foundation,JihemC/Foundation-Demo,lizzwestman/foundation,dragthor/foundation-sites,abdullahsalem/foundation-sites,DouglasAllen/css-foundation,jeromelebleu/foundation-sites,r14r/fork_foundation_master,signal/foundation,NikhilKalige/foundation,abdullahsalem/foundation-sites,r14r-work/fork_foundation_master,anbestephen/foundation,advisorwebsites/foundation-sites-6,adstyles/foundation,designerno1/foundation-sites,Larzans/foundation,designerno1/foundation-sites,pauleds/foundation,lizzwestman/foundation,zurb/foundation-sites-6,sethkane/foundation-sites,dragthor/foundation-sites,joe-watkins/foundation,Iamronan/foundation,anbestephen/foundation,wikieswan/foundation,socketz/foundation-multilevel-offcanvas,leo-guinan/foundation,Klaudit/foundation,r14r/fork_foundation_master,0111001101111010/foundation,mbencharrada/foundation,glunco/foundation,pauleds/foundation,ysalmin/foundation,gnepal7/foundation,ioanok/foundation,joe-watkins/foundation,celsoyh/foundation,abdullahsalem/foundation-sites,mbarlock/foundation,zurb/foundation,walbo/foundation,celsoyh/foundation,wikieswan/foundation,NikhilKalige/foundation,zurb/foundation-sites-6,iwikmu/foundation,socketz/foundation-multilevel-offcanvas,a-dg/foundation,Mango-information-systems/foundation,pauleds/foundation,Ilyes512/foundation,vita10gy/foundation,asommer70/foundation,ucla/foundation-sites,laantorchaweb/foundation,karland/foundation-sites,robottomw/foundation,r14r-work/fork_foundation_master,PassKitInc/foundation-sites,wikieswan/foundation,ioanok/foundation,zurb/foundation-sites,labr1005/foundation,ibroadfo/foundation,socketz/foundation-multilevel-offcanvas,vrkansagara/foundation,djlotus/foundation,designerno1/foundation-sites,labr1005/foundation,youprofit/foundation,glizer/foundation,oller/foundation,denisahac/foundation-sites,PassKitInc/foundation-sites,atmmarketing/foundation-sites,glizer/foundation,a-dg/foundation,Klaudit/foundation,jlegendary/foundation,BerndtGroup/TBG-foundation-sites,robottomw/foundation,andycochran/foundation-sites,celsoyh/foundation,DouglasAllen/css-foundation,IamManchanda/foundation-sites,BerndtGroup/TBG-foundation-sites,iwikmu/foundation,brettsmason/foundation-sites,BerndtGroup/TBG-foundation-sites,glunco/foundation,Owlbertz/foundation,mbarlock/foundation,Larzans/foundation,getoutfitted/reaction-foundation-theme,marcosvicente/foundation,barnyp/foundation,vrkansagara/foundation,dimamedia/foundation-6-sites-simple-scss-and-js,Mango-information-systems/foundation,lizzwestman/foundation,RichardLee1978/foundation,Owlbertz/foundation,getoutfitted/reaction-foundation-theme,joe-watkins/foundation,r14r/fork_foundation_master,Klaudit/foundation,jamesstoneco/foundation-sites,yohio/foundation-sites-6,jlegendary/foundation,joe-watkins/foundation,barnyp/foundation,pdeffendol/foundation,sitexa/foundation,a-dg/foundation,laantorchaweb/foundation,brettsmason/foundation-sites,JihemC/Foundation-Demo,andycochran/foundation-sites,claytonrodgers/foundation,adstyles/foundation,mbencharrada/foundation,stanwmusic/foundation,birthdayalex/foundation,jxnblk/foundation,pwnall/foundation-sites,natewiebe13/foundation-sites,NeonWilderness/foundation,getoutfitted/reaction-foundation-theme,birthdayalex/foundation,vita10gy/foundation,colin-marshall/foundation-sites,jlegendary/foundation,NikhilKalige/foundation,signal/foundation,themccallister/foundation,robottomw/foundation,Larzans/foundation,adstyles/foundation,jxnblk/foundation,IamManchanda/foundation-sites,barnyp/foundation,birthdayalex/foundation,asommer70/foundation,gnepal7/foundation,sashaegorov/foundation-sites,hummingbird-me/foundation-sites-6,NeonWilderness/foundation,adstyles/foundation,pdeffendol/foundation,youprofit/foundation,iwikmu/foundation,sashaegorov/foundation-sites,pwnall/foundation-sites,brettsmason/foundation-sites,birthdayalex/foundation,claytonrodgers/foundation,Klaudit/foundation,IamManchanda/foundation-sites,r14r-work/fork_foundation_master,dragthor/foundation-sites,MarcGuay/foundation,Owlbertz/foundation,mbencharrada/foundation,DaSchTour/foundation-sites,marcosvicente/foundation,walbo/foundation,sitexa/foundation,leo-guinan/foundation,jlegendary/foundation,pdeffendol/foundation,mbencharrada/foundation,labr1005/foundation,signal/foundation,ibroadfo/foundation,samuelmc/foundation-sites,ioanok/foundation,0111001101111010/foundation,hboers/foundation,leo-guinan/foundation,pauleds/foundation,gnepal7/foundation,asommer70/foundation,claytonrodgers/foundation,elkingtonmcb/foundation,jaylensoeur/foundation-sites-6,carey/foundation