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

Defer loading mavo script #167

Open
niutech opened this issue Oct 13, 2024 · 0 comments
Open

Defer loading mavo script #167

niutech opened this issue Oct 13, 2024 · 0 comments

Comments

@niutech
Copy link

niutech commented Oct 13, 2024

In your primer you should tell users to defer loading a blocking third-party script https://get.mavo.io/mavo.js in the <head>, so it looks like:

<head>
    ...
    <link rel="stylesheet" href="https://get.mavo.io/mavo.css">
    <script src="https://get.mavo.io/mavo.js" defer></script>
    ...
</head>

This is a well-known webperf rule not to block page rendering until the <script> in <head> is loaded. Alternatively, load <script> just before </body>

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

1 participant