@primewebsa,
Please allow me to assist.
Perform the following to identify the “data-handle” (i.e., “script-handle”) referenced in the filters provided by @delyandelov:
(1) Install the plugin, Code Snippets.
(2) Create a new code snippet with the information provided below.
(3) Set the code snippet to “Run snippet everywhere”, save and activate it.
(4) Visit you website, right click, and select “View page source”.
(5) When the page source displays, press CTRL+F (search box will appear).
(6) Enter “data-handle” in the search box. If done right, you should see something like this: https://ibb.co/NVK6sgF
(7) Click the down arrow inside the search box to identify all “data-handle”(s) inside your web page. For example, the “data-handle” (i.e., “script-handle”) for jQuery is “jquery-core”.
(7) Once you identify the “data-handle”(s) that are potentially causing your issue, enter them into the above filter(s) where it says “script-handle”, “script-handle2”, etc.
(8) Run the above filter(s) with your “data-handle”(s) until your issue is solved.
Note: You can also use the plugin, Code Snippets, to run the above filters.
Hope this helps.
Best wishes!
————————–
Code Snippet to Activate Website Data-Handle (otherwise known as “Script-Handle”):
<?php
add_filter( 'script_loader_tag', 'cameronjonesweb_add_script_handle', 10, 3 );
function cameronjonesweb_add_script_handle( $tag, $handle, $src ) {
return str_replace( '<script', sprintf(
'<script data-handle="%1$s"',
esc_attr( $handle )
), $tag );
}