Inline WP Scripts not loading on frontend page.

[ad_1]

Hello, Speed Optimizer Team,

I am in the Development Team of SureCart plugin.

I am writing on behalf of one of our customer’s.

We are adding an inline script on wp_head hook like below from our plugin:

wp_add_inline_script(
			'surecart-affiliate-tracking',
			'window.SureCartAffiliatesConfig = {
				"publicToken": "' . \SureCart::account()->public_token . '",
				"baseURL":"' . esc_url_raw( untrailingslashit( SURECART_API_URL ) ) . '/v1"
			};',
			'before'
		);

But the script tag does not render on the frontend when Speed Optimizer plugin is active.

The user has Minification, Combination & Defer settings enabled, but even after disabling those the script does not render.

Can you please help us by providing us some inputs on what we can check to fix this issue?

Looking forward to hearing from you.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer