Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated script type #7

Open
mmojadad opened this issue Mar 29, 2023 · 2 comments
Open

Duplicated script type #7

mmojadad opened this issue Mar 29, 2023 · 2 comments

Comments

@mmojadad
Copy link

mmojadad commented Mar 29, 2023

Hi
I face duplicate script type when i enable partytown for a specific js script

script type="text/partytown" type='text/javascript' ....

The script is outside Plugins and i am using this code in active theme functions.php

function wpb_adding_scripts() {
wp_register_script('my_amazing_script', get_template_directory_uri() . '/js/scripts/combine.min.js', array('partytown'),'1.0.0', true);
wp_enqueue_script('my_amazing_script');
}
add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );

@thelovekesh
Copy link
Member

Could you please provide some minimum reproducible example?

@mmojadad
Copy link
Author

Could you please provide some minimum reproducible example?

I am using in Windows/IIS 10 environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants