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

Updated async attribute. #324

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Updated async attribute. #324

merged 1 commit into from
Dec 11, 2023

Conversation

marclucraft
Copy link
Contributor

@marclucraft marclucraft commented Dec 8, 2023

Updated async attribute to correct implementation.

This change in version WordPress 6.3, to allow scripts to have async defer added when enqueueing: https://make.wordpress.org/core/2023/07/14/registering-scripts-with-async-and-defer-attributes-in-wordpress-6-3/

Original code causes issues for some folks whereby the src was added as src="https://cdn.onesignal.com/sdks/OneSignalSDK.js' async='async" causing a 404. Originally assumed to be CDn/Optimise type plugin problem.


This change is Reviewable

Updated async attribute to correct implementation.

This change in version WordPress 6.3, to allow scripts to have async defer added when enqueueing: https://make.wordpress.org/core/2023/07/14/registering-scripts-with-async-and-defer-attributes-in-wordpress-6-3/

Original code causes issues for some folks whereby the src was added as src="https://cdn.onesignal.com/sdks/OneSignalSDK.js' async='async" causing a 404. Originally assumed to be CDn/Optimise type plugin problem.
@marclucraft
Copy link
Contributor Author

@jkasten2 @rgomezp

@jkasten2 jkasten2 merged commit 0360cdd into OneSignal:main Dec 11, 2023
1 check passed
@marclucraft marclucraft deleted the patch-1 branch December 20, 2023 10:16
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

Successfully merging this pull request may close these issues.

2 participants