You don’t have to manually handle dependencies. That is the whole point of the enqueue system, it handles dependencies for you.
There’s nothing wrong with the code in your post, so if you want help on it, you’ll need to ask about your problem more specifically.
Related Posts:
- JSON parsing error syntax error unexpected end of input
- Jquery Ajax Posting JSON to webservice
- TypeError: $.ajax(…) is not a function?
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- AJAX returns response 0
- How to Use JSON With AJAX?
- Cannot access elements of json object
- wp_ajax() question.. not using wp_enqueue_script?
- WordPress Ajax problem with undefined url
- How to get those data using with ajax json?
- Intergrating agile carousel to wordpress: how to write the ajax_callback function
- Using WP_Query to grab custom meta values, foreach to json object
- How to retrieve WP_Object that is inside an array of another array
- Can’t add classes using jQuery from a JSON string with get_body_class()
- Ajax Request with jQuery not happening
- Using WP Ajax and jQuery to process multiple forms on the same page?
- Pass request headers in a jQuery AJAX GET call
- data.map is not a function
- jQuery Ajax error handling, show custom exception messages
- How to send multiple data fields via Ajax?
- My javascript is returning this error: $.ajax is not a function
- jQuery AJAX cross domain
- Ajax TypeError: $.POST is not a function
- jquery loop on Json data using $.each
- XML Parsing Error: not well-formed in FireFox but good in Chrome
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- How to fix the ‘Missing required request header. Must specify one of: origin,x-requested-with’ Ajax Error
- What’s the point of the X-Requested-With header?
- SON Post with Customized HTTPHeader Field
- jQuery posting JSON
- how to loop through JSON array in jQuery?
- How to get a cross-origin resource sharing (CORS) post request working
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- jQuery Form Validation before Ajax submit
- jQuery – Illegal invocation
- Javascript : array.length returns undefined
- $(document).ready(function() is not working
- jQuery ajax error function
- ajaxurl not defined on front end
- Enqueue core jQuery in the footer?
- How to correctly include jquery-ui effects on wordpress
- How do I make script load after jquery?
- How to manage ajax calls and JSON in wordpress
- ajax stopped working when not logged in?
- Using jQuery to delete data stored in wp_options
- Correct Method to run scripts with dependencies without enqueue?
- Concatenate and minify dependencies for enqueued JavaScript files
- tinymce is not defined when not using wp_editor
- WordPress AJAX File Upload – FrontEnd
- How to add a ” waiting” icon for an ajax in WP frontend?
- Make jQuery library load before plugin files
- What is the simplest ajax upload plugin or script to be used with wordpress?
- AJAX nonce with check_ajax_referer()
- How to control what jQuery version to include, with wp_enqueue_script
- Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?
- Adding jquery and thickbox to WordPress theme
- How to get the path to current theme, but from a JS file?
- WordPress Ajax URL for function in functions.php
- Move WordPress native javascript to bottom of page?
- Best Practices for Seperating jQuery from HTML/PHP
- RequireJS in custom theme. Working Example
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- wp_mail script with jQuery post
- Ajax call does not activate callback function
- AJAX call returns 0
- AJAX function returning -1
- How to get a jQuery script to run on a page?
- call shortcode in javascript
- WP set auth cookie using Ajax is not saved to browser
- Add `datetimepicker` to form
- jQuery and AJAX Not working with Select Form Element
- Deregister WordPress jquery on specific page
- How to pass both action and formdata in wordpress ajax?
- Gravity Forms loading jquery
- jquery & ajax getting data to php in wordpress
- Moving jQuery to the footer without using de-register in WordPress
- jQuery AJAX form validation
- Including javascript for a shortcode
- Passing a varible from jQuery to PHP
- Proper way to load a single post via Ajax?
- Asynchronous Javascript Loaders
- Basic WordPress AJAX Call
- Best Way to Include Scripts on a Specific Template Page
- Trying to get single posts to load on the front page via ajax
- ajax call in wordpress front end
- AJAX post into pop-up div
- How to include jquery validate in a template
- Bind to WPSetAsThumbnail
- Ajax not firing properly using Firefox, but works in Chrome
- wp_enqueue_script won’t load in header?
- chosen jquery library not loading – is not a function error
- wp_enqueue_script and wp_register_script in theme not working
- wp_enqueuescript won’t load in footer even with true value set?
- jQuery Ajax() doesn’t work when the page is accessed as a WordPress template page
- Appending anchor tag to next post
- How wp_enqueue_script works?
- wp_localize_script, variable is not defined in jquery
- Enqueue jQuery in WordPress
- How to load whole WordPress pages dynamically with AJAX/jQuery like this following website?
- WordPress Script Loading/Unloading — wp_deregister_script(‘jquery’)