Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Duplicate jQuery #669

Closed
bharuma opened this issue Jan 1, 2016 · 2 comments
Closed

Duplicate jQuery #669

bharuma opened this issue Jan 1, 2016 · 2 comments
Labels

Comments

@bharuma
Copy link

bharuma commented Jan 1, 2016

In the enqueue-script, we are loading the jQuery from Google CDN.

In the gulp file, we are packing jQuery again:
javascript: [
'assets/components/jquery/dist/jquery.js',

Why is that jQuery is duplicated? Is this for local fall back?

Some of my jQuery code (dynamically loaded, but not through jquery ajax) do not load because of duplicate jquery loads (and I have to inactivate either from foundationpress.js or comment from CDN to make it work)

@olefredrik
Copy link
Owner

Fixed #670

@colin-marshall
Copy link
Collaborator

@bharuma this was my fault. When I made the gulpfile for FP I used the paths in the gulpfile from the Foundation Zurb Template as a reference and it looks like I forgot to remove jQuery. Thanks for pointing out my error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants