Try and use/add the priority parameter of the hook for app.js
and see if it works.
add_action( 'wp_enqueue_scripts', 'my_scripts', 1 );
By default it is 10, so lets call it early and see if this works for you
Related Posts:
- Dequeue / Deregister script and replace it with a new plugin
- React JSX in WordPress Plugin Development
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- force enqueue script to be first in order of prominence
- 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
- Which method is best to enqueue scripts
- How do I only load a plugin js on it’s settings pages?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Declaring script dependencies between scripts enqueued with different action hooks
- Pass $this to function nested in another public function of the same class
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Add extra parameter in tag using script_loader_tag
- Insert code after tag without using functions.php?
- Custom data-id wp_enqueue_script
- How do I use WordPress PHP functions in my Javascript code?
- How to avoid redefining requirejs in plugin when another plugin also uses requirejs
- wp_enqueue_scripts not working inside shortcode
- Passing select control value to block
- wp_enqueue_script fails to include in footer
- How to create popup same as wordpress popup feature
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Problem in loading javascript in footer
- How to load plugin after page is loaded – pagespeed issues
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Best approach to fetch data from wp options to js file or php file
- Making a plugin only available on the front-end for the logged in super admin
- Updating the Drag-To-Share eXtended share URLs?
- How to add Internationalization in WordPress using Javascript/React?
- wp.media javascript issue with on select
- jQuery for custom plugin not working with Divi theme
- Create shortcode to echo javascript
- Redirect to another page using contact form 7? [closed]
- Is there a loading priority for login_enqueue_scripts?
- Delay JavaScript files from loading
- Why am I unable to load scripts in head in plugin?
- Deactivate JS Script in Plugin Shortcode
- Remove / overwrite some functions in buddypress.js
- Add type to enqueued script inside plugin
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How to use custom Javascript code inside a plugin?
- Custom CSS not being added by plugin
- how to request a script more than once in wordpress
- why the wp_register_script doesn’t work for register_activation_hook
- How to enqueue some javascript source once per page
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Why won’t wp_enqueue_script work within any plugin file?
- wordpress plugin add page when activate
- Fixed: Console.log twice in the edit function
- Cannot run script properly with my custom plugin
- Add style to body based on url
- How to properly enqueue jQuery knob on WordPress without conflict?
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Why can I not deregister my style and script on custom post type?
- Create a form and have custom menu display based on user answers?
- AJAX update fails for public/non-admin users
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- How to use information from the database in the front-end?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to pass value from WordPress to Javascript
- Javascript in plugin not working
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Creating a user ‘add custom field’ section
- Need to hide an element depending on date and post category
- Ajax, jQuery and WordPress
- Plugin – including external javascript calling google maps
- get_option include in my adsense
- Is it possible to run javascript on plugin deactivated?
- Ajax in Plugins: returns the whole page
- Load css classes after using ajax calls
- How to create post comparison in wordpress
- How to access values from your own settings page in javascript?
- wp_enqueue_script doesn’t load JS in plugin
- Vanilla javascript in custom gutenberg block not working
- Pass A Value From Outside To A Plugin Variable
- What are the benefit in adding hook in the init() hook?
- Check if variable is set in filter
- How to write “alt” tag in image for wordpress code?
- is it possible to hook every page style?
- Redirect logged in user to somepage on every page view?
- Edit all $wp_scripts at once to $in_footer = false
- Ajax call not working in wordpress through a plugin
- Cookie value changes back to previous value after changing
- Highlight admin menu items that are parent of existing core items
- Getting all woocommerce products from REST API call in plugin
- Why won’t the Comprehensive Google Map Plugin load?
- How to change a specific page to custom page?
- How use Dynamic hyperlink on each wordpress post?
- _e in wordpress +
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Wrong block appender button showing