Self-host moment.js so the booking worker list loads again
All four head templates hot-linked moment from momentjs.com/downloads, which is the project website rather than a CDN. Since that file was replaced on 2026-10-29, Chrome intermittently blocks it with ERR_BLOCKED_BY_ORB on uncached loads. The booking form's ready handler then dies on "moment is not defined" before binding the service click handler, so no worker request is ever sent and the worker picker stays empty - on test, dev and prod at once. moment 2.30.1 (cdnjs build) is now served from assets/js through asset_ver(). Only moment.utc().add().format() is used, so the pin is safe. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
072e90e28d
commit
4c79619e7d
@@ -40,7 +40,7 @@ $this->load->helper('url');
|
||||
<script src="<?php echo asset_ver('assets/js/jquery/jquery.js');?>"></script>
|
||||
<link rel="stylesheet" href="<?php echo asset_ver('assets/js/jquery/jquery-ui.css');?>">
|
||||
<script src="<?php echo asset_ver('assets/js/jquery/jquery-ui.js');?>"></script>
|
||||
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
|
||||
<script src="<?php echo asset_ver('assets/js/moment-with-locales.min.js');?>"></script>
|
||||
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/style.css');?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/responsive.css');?>">
|
||||
|
||||
@@ -40,7 +40,7 @@ $this->load->helper('url');
|
||||
<link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Open+Sans:ital,wght@0,700;0,800;1,700;1,800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo asset_ver('assets/js/jquery/jquery-ui.css');?>">
|
||||
<script src="<?php echo asset_ver('assets/js/jquery/jquery-ui.js');?>"></script>
|
||||
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
|
||||
<script src="<?php echo asset_ver('assets/js/moment-with-locales.min.js');?>"></script>
|
||||
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/style.css');?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/responsive.css');?>">
|
||||
|
||||
@@ -36,7 +36,7 @@ $this->load->helper('url');
|
||||
<link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Open+Sans:ital,wght@0,700;0,800;1,700;1,800&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
|
||||
<script src="<?php echo asset_ver('assets/js/moment-with-locales.min.js');?>"></script>
|
||||
<script src="<?php echo asset_ver('assets/js/jquery.flexdatalist.min.js');?>"></script>
|
||||
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
|
||||
<link href="<?php echo asset_ver('assets/js/jquery.flexdatalist.min.css');?>" rel="stylesheet" type="text/css">
|
||||
|
||||
@@ -42,7 +42,7 @@ $this->load->helper('url');
|
||||
<link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Open+Sans:ital,wght@0,700;0,800;1,700;1,800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo asset_ver('assets/js/jquery/jquery-ui.css');?>">
|
||||
<script src="<?php echo asset_ver('assets/js/jquery/jquery-ui.js');?>"></script>
|
||||
<script src="https://momentjs.com/downloads/moment-with-locales.js"></script>
|
||||
<script src="<?php echo asset_ver('assets/js/moment-with-locales.min.js');?>"></script>
|
||||
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/style.css');?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/responsive.css');?>">
|
||||
|
||||
Reference in New Issue
Block a user