Skip to content

Commit

Permalink
add rel='preload' & remove duplicates?
Browse files Browse the repository at this point in the history
  • Loading branch information
AIC-BV authored Dec 7, 2023
1 parent 698f6f8 commit c863e3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/backend/layouts/_head.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@
?>

<?php foreach ($styles as $style): ?>
<link href="<?= $style . '?v=' . $coreBuild; ?>" rel="stylesheet" fetchpriority="high">
<link href="<?= $style . '?v=' . $coreBuild; ?>" rel="preload" as="style" fetchpriority="high">
<link rel='preload' href="<?= $style . '?v=' . $coreBuild; ?>" as="style">
<?php endforeach; ?>

<?php foreach ($scripts as $script): ?>
<script data-cfasync="false" src="<?= $script . '?v=' . $coreBuild; ?>" async fetchpriority="high"></script>
<link href="<?= $script . '?v=' . $coreBuild; ?>" rel="preload" as="script" fetchpriority="high">
<link rel="preload" href="<?= $script . '?v=' . $coreBuild; ?>" as="script">
<?php endforeach; ?>

<?php if (!Config::get('cms.enableBackendServiceWorkers', false)): ?>
Expand Down

0 comments on commit c863e3f

Please sign in to comment.