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

Preload files #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Preload files #38

wants to merge 6 commits into from

Conversation

AIC-BV
Copy link
Contributor

@AIC-BV AIC-BV commented Nov 28, 2023

This property does not exist (anymore?)

This property does not exist (anymore?)
This property does not exist (anymore?)
@AIC-BV AIC-BV changed the title Remove importance="high" Preload files Dec 7, 2023
@LukeTowers
Copy link
Member

Anything else left on this @AIC-BV or is it good to go? Did you notice any difference when testing locally?

@AIC-BV
Copy link
Contributor Author

AIC-BV commented Dec 12, 2023

Anything else left on this @AIC-BV or is it good to go? Did you notice any difference when testing locally?

I think this is working perfectly fine, but I'm not noticing any increased performance

<?php endforeach; ?>

<?php foreach ($scripts as $script) : ?>
<script data-cfasync="false" src="<?= $script . '?v=' . $coreBuild; ?>" importance="high"></script>
Copy link
Member

Choose a reason for hiding this comment

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

data-cfasync is required to work well with CloudFlare AFAIK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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