sfc-utils 1.4.149 → 1.4.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,17 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
22
22
  // React Helmet is actually terrible and runs these scripts twice, so we are including them async ourselves
23
23
  // Run analytics and resizing scripts right away so we take care of that
24
24
  if (!isEmbedded) {
25
+ // Google Tag Manager
26
+ (function (w, d, s, l, i) {
27
+ w[l] = w[l] || [];
28
+ w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
29
+ var f = d.getElementsByTagName(s)[0],
30
+ j = d.createElement(s),
31
+ dl = l != "dataLayer" ? "&l=" + l : "";
32
+ j.async = true;
33
+ j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
34
+ f.parentNode.insertBefore(j, f);
35
+ })(window, document, "script", "dataLayer", "GTM-P38VLD8M");
25
36
  // Add new md5 script
26
37
  let script = document.createElement("script");
27
38
  script.type = "text/javascript";
@@ -173,9 +173,15 @@ const LayoutHelmet = ({
173
173
  <meta name="description" content={DESCRIPTION} />
174
174
  <link rel="shortcut icon" href={favHref} type="image/x-icon" />
175
175
  <link rel="canonical" href={`${CANONICAL_URL}/${url_add}`} />
176
+ {/* Preload the stylesheet */}
176
177
  <link
177
178
  rel="preload"
178
179
  href={`https://files.sfchronicle.com/brand-styles/${styleSheetID}.css`}
180
+ as="style"
181
+ />
182
+ <link
183
+ rel="stylesheet"
184
+ href={`https://files.sfchronicle.com/brand-styles/${styleSheetID}.css`}
179
185
  />
180
186
 
181
187
  {isApp || EMBEDDED || noindex ? (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.149",
3
+ "version": "1.4.151",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",