Menu icon Foundation
Loading jQuery bloats app.js

Hi!

I'm new to the Foundation and have just created my first project on it.

I was using ZURB template and had all the js components included. Now I am trying to reduce the page weight and commented all unused plugins in config.yml.

One of the libraries required by foundation is "bower_components/jquery/dist/jquery.min.js". The library itself is about 85KB but when I build my page including jquery, app.js gains about 500KB additional weight.

I don't really understand where the problem might be, so I would appreciate any advice.

jquery

Hi!

I'm new to the Foundation and have just created my first project on it.

I was using ZURB template and had all the js components included. Now I am trying to reduce the page weight and commented all unused plugins in config.yml.

One of the libraries required by foundation is "bower_components/jquery/dist/jquery.min.js". The library itself is about 85KB but when I build my page including jquery, app.js gains about 500KB additional weight.

I don't really understand where the problem might be, so I would appreciate any advice.