You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
When adding some custom scripts in enqueue-scripts.php, I noticed the following:
Wordpress version of jquery is deregistered.
// Deregister the jquery version bundled with WordPress.
wp_deregister_script( 'jquery' );
CDN version of jquery is enqueued (but not registered).
// CDN hosted jQuery placed in the header, as some plugins require that jQuery is loaded in the header.
wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js', array(), '2.1.0', false );
Then jquery is enqueued again.
wp_enqueue_script( 'jquery' );
Everything seems to be working, as-is, I just wasn't sure why jquery was enqueued twice and not registered. Could someone help me learn?
Sorry for the noob question, and thanks for the help. This is my first full-on theme build, and it's been great to learn using FoundationPress. Thanks for your hard work. 🙌
The text was updated successfully, but these errors were encountered:
When adding some custom scripts in enqueue-scripts.php, I noticed the following:
Everything seems to be working, as-is, I just wasn't sure why jquery was enqueued twice and not registered. Could someone help me learn?
Sorry for the noob question, and thanks for the help. This is my first full-on theme build, and it's been great to learn using FoundationPress. Thanks for your hard work. 🙌
The text was updated successfully, but these errors were encountered: