Skip to content

Commit

Permalink
more optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
dpickett committed Oct 10, 2023
1 parent e851196 commit d6c06bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gatsby-ssr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const fonts = [
// "/fonts/Inter/Inter-ExtraBold.ttf",
// "/fonts/Inter/Inter-ExtraLight.ttf",
// "/fonts/Inter/Inter-Light.ttf",
"/fonts/Inter/Inter-Medium.ttf",
// "/fonts/Inter/Inter-Medium.ttf",
"/fonts/Inter/Inter-Regular.ttf",
// "/fonts/Inter/Inter-Thin.ttf",
]
Expand Down
7 changes: 0 additions & 7 deletions src/components/book-call/hooks/useBookCallModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ export const useBookCallModal = () => {
const url = companyContactInformation.launchCallUrl;

useEffect(() => {
if (document && !window.Calendly && !calendlyInitialized) {
const tag = document.createElement("script");
tag.async = true;
tag.src = "https://assets.calendly.com/assets/external/widget.js";
const body = document.getElementsByTagName("body")[0];
body.appendChild(tag);
}
window.addEventListener("message", (e) => {
if (e.data.event && e.data.event.indexOf("calendly")) {
setModalVisibility(false);
Expand Down
3 changes: 2 additions & 1 deletion src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import { LaunchWareLogoLight } from "./LaunchWareLogoLight"
import { Link } from "gatsby"
import { Link, Script } from "gatsby"
import { companySocialProfiles } from "../../configuration/getCompanySocialProfile"
import { CompanySocialIcon } from "../social/CompanySocialIcon"
import { companyContactInformation } from "../../configuration/companyContactInformation"
Expand Down Expand Up @@ -80,6 +80,7 @@ const Footer = () => {
</div>
</div>
<TrackingCodes />
<Script src="https://assets.calendly.com/assets/external/widget.js" />
</footer >
)
}
Expand Down

0 comments on commit d6c06bd

Please sign in to comment.