Skip to content

Commit

Permalink
Merge pull request #2327 from WPO-Foundation/site_js_loaded_vitals
Browse files Browse the repository at this point in the history
Webvitals page: prevent double js loading
  • Loading branch information
scottjehl authored Sep 7, 2022
2 parents 7cdc9c9 + 1df9211 commit b2f1aae
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions www/webvitals.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@
</div><!--home_content_contain-->
</div><!--home_content-->
</div>
<?php
if (!isset($site_js_loaded) || !$site_js_loaded) {
echo "<script src=\"{$GLOBALS['cdnPath']}/assets/js/jquery.js\"></script>\n";
echo "<script src=\"{$GLOBALS['cdnPath']}/assets/js/site.js?v=" . VER_JS . "\"></script>\n";
$hasJquery = true;
}
?>

<script>
<?php
echo "var profiles = " . json_encode($profiles) . ";\n";
Expand Down

0 comments on commit b2f1aae

Please sign in to comment.