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

Change jQuery loading method #1040

Merged
merged 2 commits into from
Aug 12, 2017
Merged

Change jQuery loading method #1040

merged 2 commits into from
Aug 12, 2017

Conversation

belamezey
Copy link
Contributor

Enqueues jQuery in WordPress insted of loading it with Webpack and makes
the Webpacked Foundation scripts dependant on jQuery.

Issue #1037

Enqueues jQuery in WordPress insted of loading it with Webpack and makes
the Webpacked Foundation scripts dependant on jQuery.
wp_deregister_script( 'jquery' );

// CDN hosted jQuery placed in the header, as some plugins require that jQuery is loaded in the header.
wp_enqueue_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js', array(), '2.10.2', false );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think versioning for this should reflect the jQuery version and not FoundationPress.

So this should be
wp_enqueue_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js', array(), '3.2.1', false );

@olefredrik
Copy link
Owner

👍🏼

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

Successfully merging this pull request may close these issues.

2 participants