I write a basic plugin with custom css/js. I use wp_enqueue_script for my custom script and use hook 'init' to register script in front-end page. But wordpress load this javascript file two times with different version. ( See in image ) And I don't know why. I load this script one time and load it in one point of my code.
I have tried clean cache wordpress, cache browser, but nothing do.
My site is esposte online : https://node.alfonsosomma.it/2022/02/04/articolo-prova/ I write plugin to use add_shortcode function to create form; shortcode for the form in this page (articolo-prova).
Best regards,
custom-addons-js-js
and another withcustom-addons-js
, it's likely that you've made a mistake somewhere and registered it twice with slightly different handles, akacustom-addons
andcustom-addons-js
. Where you've done this however is unclear as we don't have access to your code. Also there is no code for the shortcode you mentioned and you haven't shared the name of the plugin you used