- Moved Google Analytics and HubSpot integration scripts to separate modules for better organization and maintainability. - Implemented an AnalyticsManager class to handle Google Analytics initialization and privacy notice display. - Created a HubSpotManager class to manage HubSpot widget loading and dark mode theming. - Updated index.html to reference the new modules, improving code clarity and separation of concerns.
72 lines
2.9 KiB
HTML
72 lines
2.9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="./favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#2b2b2b" />
|
|
|
|
<!-- PWA Meta Tags -->
|
|
<meta name="application-name" content="Worklenz" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta name="apple-mobile-web-app-title" content="Worklenz" />
|
|
<meta name="description" content="A comprehensive project management application for teams" />
|
|
<meta name="format-detection" content="telephone=no" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="msapplication-config" content="/browserconfig.xml" />
|
|
<meta name="msapplication-TileColor" content="#2b2b2b" />
|
|
<meta name="msapplication-tap-highlight" content="no" />
|
|
|
|
<!-- Apple Touch Icons -->
|
|
<link rel="apple-touch-icon" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" sizes="167x167" href="/favicon.ico" />
|
|
|
|
<!-- PWA Manifest -->
|
|
<link rel="manifest" href="/manifest.json" />
|
|
|
|
<!-- Resource hints for better loading performance -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link rel="dns-prefetch" href="https://www.googletagmanager.com" />
|
|
<link rel="dns-prefetch" href="https://js.hs-scripts.com" />
|
|
|
|
<!-- Preload critical resources -->
|
|
<link rel="preload" href="/locales/en/common.json" as="fetch" type="application/json" crossorigin />
|
|
<link rel="preload" href="/locales/en/auth/login.json" as="fetch" type="application/json" crossorigin />
|
|
<link rel="preload" href="/locales/en/navbar.json" as="fetch" type="application/json" crossorigin />
|
|
|
|
<!-- Optimized font loading with font-display: swap -->
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
|
|
rel="stylesheet"
|
|
media="print"
|
|
onload="this.media='all'"
|
|
/>
|
|
<noscript>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</noscript>
|
|
|
|
<title>Worklenz</title>
|
|
|
|
<!-- Environment configuration -->
|
|
<script src="/env-config.js"></script>
|
|
|
|
<!-- Analytics Module -->
|
|
<script src="/js/analytics.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
<div id="root"></div>
|
|
<script type="module" src="./src/index.tsx"></script>
|
|
<!-- HubSpot Integration Module -->
|
|
<script src="/js/hubspot.js"></script>
|
|
</body>
|
|
</html>
|