Always use the built-in versions. Don’t waste time with old WordPress installations – other plugins will break there too.
See wp-includes/script-loader.php
for the list of available files. Quite a lot. 🙂
And avoid remote resources. Some (Google) fail to send the scripts gzip compressed to all supporting browsers, others may not be reliable enough. There is also a privacy issue. Not everyone is happy with a log entry on other sites servers each time a user visits wp-admin
…
And if another plugin does the right thing and loads the WordPress script parallel to your remote resource you end up with a useless request and possible script conflicts.
Related Posts:
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- When can you get current page ID and initialize hooks right after?
- enqueue script only if it is not already enqueue
- Declaring script dependencies between scripts enqueued with different action hooks
- Pass $this to function nested in another public function of the same class
- Dequeue / Deregister script and replace it with a new plugin
- Custom data-id wp_enqueue_script
- wp_enqueue_scripts not working inside shortcode
- wp_enqueue_script fails to include in footer
- Find the URL of the current plugin directory
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Best way to hook a custom url?
- React JSX in WordPress Plugin Development
- Making a plugin only available on the front-end for the logged in super admin
- Enqueue WordPress plugin scripts below all other JS
- Added slug after URL permalink last slash returns different content
- jQuery for custom plugin not working with Divi theme
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Create shortcode to echo javascript
- Redirect to another page using contact form 7? [closed]
- How to get path or root of plugin folder, not file or dir?
- Why am I unable to load scripts in head in plugin?
- Correct Plugin File Path
- How to rewrite URL and get the values?
- Custom CSS not being added by plugin
- why the wp_register_script doesn’t work for register_activation_hook
- Why won’t wp_enqueue_script work within any plugin file?
- wordpress plugin add page when activate
- path of wp-content directory when we are on some plugin
- Register additional wp plugin directory
- map urls to plugins
- HTML link within my plugin settings page
- How to create a custom wordpress plugin for a specific functionality?
- wp_enqueue_script doesn’t load JS in plugin
- Best way to initiate a class in a WP plugin?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- How to safely sanitize a textarea which takes full HTML input
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Why activate_plugin is not working in register_activation_hook
- Best Practice for Referencing the Plugin Directory
- Query Posts by Custom Field ‘Price’
- fatal error get_page_permastruct()
- How can I limit functionality in one version of a plugin?
- How to avoid redefining requirejs in plugin when another plugin also uses requirejs
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- Problem in loading javascript in footer
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Edit Yoast SEO breadcrumbs output [closed]
- Is there any kind of theme on WordPress to sell my own movies?
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Fromcraft Plugin On click submit button [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- How to redirect users to their profile after they successfully edit their profile
- What is wordpress way to access a plugin’s classes/models to load custom post type data?
- flush_rewrite_rules() not working with update_option_{$option}
- plugin wraps the entire content
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- using wp_footer hook in a plugin
- How to get a custom page through plugin?
- Want to create custom design of progress indicator in wpforms
- Using Class loader in WordPress boilerplate
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- How to dynamically add template in Innerblock?
- Include my files in a plugin? [duplicate]
- $wpdb->insert not working inside save_post tag
- How to check for already existing plugin versions on activation? and prevent errors
- update_post_meta is not working for me when I use e.preventDefault for update button
- Using foreach loop for `$instance` of form and update array widget iteration
- How to call a function from inside class to outside class
- Plugin management with my custom plugin
- How to pass value from WordPress to Javascript
- Get not the full path
- Plugin communication between sites that use it?
- wp meta_query meta_value compare =REGEXP delimited by space
- Create shared actions for admin and users with plugin bolierplate
- How to Insert images in WordPress using code
- Javascript in plugin not working
- Theme editor removes backslashes
- shortcode which is introduced into entry the blog, and appears in side bar
- Images not showing on homepage after migration [duplicate]
- Widget Script Loads at Bottom of Page
- Plugin Hook: Get posts
- Why tinyMCE.editors doesnt work on tinyMCE
- How to Overwrite validate_plugin function
- WordPress include scripts and style in plugin page
- get_option include in my adsense
- Form data to wordpress DB
- redirect to custom php template in wordpress plugin directory
- Why plugin’s icon for the menu not found?
- How can I send api calls from my plugin?
- On the same site, how do I send data from a plugin file to a theme file?
- Cannot edit Sidebar in any theme in wordpress
- how to update wordpress plugin programmatically using plugin path