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

replace async defer by defer for <script> + misc linter #96

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

divinerites
Copy link
Contributor

Some trailing space where removed by my editor (VSC) to comply for md lint

@divinerites
Copy link
Contributor Author

And also plausible/analytics#1107

Copy link
Contributor

@ukutaht ukutaht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks, good. I would just make one change in the docusaurus config, see comment below.

@@ -14,7 +14,7 @@ This is how [we've integrated Plausible](https://github.com/plausible/docs/commi

```
module.exports = {
scripts: [{src: 'https://plausible.io/js/plausible.js', async: true, defer: true, 'data-domain': 'yourdomain.com'}],
scripts: [{src: 'https://plausible.io/js/plausible.js', async: false, defer: true, 'data-domain': 'yourdomain.com'}],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just leave async out in this line.

@ukutaht ukutaht merged commit 51125c9 into plausible:master Jun 7, 2021
@ukutaht
Copy link
Contributor

ukutaht commented Jun 7, 2021

Thanks!

@divinerites divinerites deleted the remove-async branch June 7, 2021 13:31
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