You could take a look at the enqueued scripts in $wp_scripts ($wp_scripts->registered), but the naming could be different (“it’s requirejs but let’s call it loadstuffjs, just because”), so I doubt it’ll be close to perfect.
Also, your plugin might be loaded before the other plugin, and they might trigger the problem without you having any control.
Maybe make loading requirejs optional (but enabled) and tell people that they ought to try disable loading it if they run into this problem (the reason being that the “other” requirejs will be loaded and work just fine). Also, I’d get a list of plugin/themes that you have these problems with and inform the user about incompatibility and ask whether they want to enable your “compatibility mode” (aka not loading requirejs through your plugin).
Related Posts:
- force enqueue script to be first in order of prominence
- How do I make my wordpress page more friendly for mobile viewers?
- Check javascript file Proper way in functions.php
- Dequeue / Deregister script and replace it with a new plugin
- Add extra parameter in tag using script_loader_tag
- dequeue not work
- Can I share predefined fonts from theme_support with a gutenberg component?
- Problem in loading javascript in footer
- React JSX in WordPress Plugin Development
- Using custom JS plugins with WordPress?
- Enqueue WordPress plugin scripts below all other JS
- WordPress 3.8.3. custom theme – sliders won’t load js/css files
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Is there a loading priority for login_enqueue_scripts?
- Deactivate JS Script in Plugin Shortcode
- Remove / overwrite some functions in buddypress.js
- Add type to enqueued script inside plugin
- Load CSS files in header of Bones theme?
- How to enqueue some javascript source once per page
- Plugin Admin panel checkbox unchecked after submit
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- Custom Plugin scripts from admin working in frontend
- Edit all $wp_scripts at once to $in_footer = false
- Edit all $wp_scripts at once to $in_footer = false
- Ajax Call not Working in Plugin
- WordPress site hamburger menu toggle not working
- Why can I not deregister my style and script on custom post type?
- Speed issues because of CSS & JavaScript
- Javascript as Jquery Function Call?
- Trying to use wp_register_script/style and enqueu them from an array – getting an error [duplicate]
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- All shortcodes not working on custom theme
- Disable plugins on cron and ajax page
- How can I dequeue a Plugin Stylesheet?
- Is it good practice to remove redundant plugins and themes?
- How do I only load a plugin js on it’s settings pages?
- Declare a function before plugin does on the theme functions.php file
- How can I change my javascript after it has been enqueued? [closed]
- Custom data-id wp_enqueue_script
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- How to use load_plugin_textdomain from within a theme
- Theme and Plugins sharing common libraries
- Difference between register_block_type & wp.blocks.registerBlockType
- add_action in functions.php, do_action in plugin?
- Implement plugins as part of a theme
- Theme or Plugin: Where should I write my code?
- Calling JavaScript file with Custom Plugin
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Do I still need a theme to use page builders?
- Can I make a super plugin that also has a theme?
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Prevent WordPress installing plugins and themes via Admin
- Check for security updates
- Executing Javascript when a New Post is Published
- Set featured image using javascript in post editor
- Display encrypted content on my website
- All sites themes functions.php have been changed
- “No Add Button” for me to customize my WordPress with themes and pluggins
- How can I list all installed plugins/themes/versions from CLI/API?
- Why does my file_exist check fail?
- How to protect WordPress from security scanner [closed]
- how can I query all wordpress users of a blog
- how to insert a HTML form into a javascript popup?
- Display a consistent Google Plus icon on ALL pages of my site
- After updating the WordPress getting a syntax error in the console
- get specific value of a array | PHP
- Is it possible not to load theme on a specific page in wordpress?
- I receive taxonomy id
- Custom plugin – load enqueue only for this plugin
- How to include files relative to a file’s directory
- Blocking Plugin Css to load custom in template directory
- Meta slider plugin only works after first refresh – Object has no method ‘flex slider’
- Javascript from Easy-Fancybox place into footer
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- How do I minify a plugins CSS/JS code?
- Directorist – Dropdown doesn’t open
- How to apply to hide TinyMCE (wp_editor) on button click
- How to override any plugin file in the child theme
- Mobile Menu and Mobile Sidebar missing
- custom fields not displaying on wordpress site
- Changing the CSS with a plugin
- Website always load twice on start
- Can’t add new plugin or themes on a wordpress multisite network from the primary site as administrator. Error: ERR_TOO_MANY_REDIRECTS
- Multiple image selection custom widget
- Execute inline javascript in wordpress after page fully loaded
- How to prevent redoing get_posts queries and make results available to other scripts?
- Is it possible to disable a theme programmatically?
- Google trying to index child theme files
- Speeding up WordPress on a Local Network
- Number format in thousands on highcharts in wpdatatable plugin
- Disqus comments count taking long to update
- Embed Javascript code to registered users only
- What Are the Advantages of Using an mu-plugin
- Best use adding user generated JS/CSS to a theme with a plugin
- Things that saved lose when logout
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Ajax, jQuery and WordPress
- How to make a rest style plugin?
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]