]*lang\s*=/', $html)) {\n $html = preg_replace('/]*)lang\s*=\s*["\'][^"\']*["\']/', ']*src=["\'][^"\']*tackont-01\.webp["\'][^>]*?)(/?\s*>)#',\n function($matches) {\n $tag = $matches[1];\n $close = $matches[2];\n // Only add if not already present\n if (stripos($tag, 'width=') === false) {\n $tag .= ' width="819" height="362"';\n }\n return $tag . $close;\n },\n $html\n );\n \n // tackont-01-1.webp\n $html = preg_replace(\n '#(
]*src=["\'][^"\']*tackont-01-1\.webp["\'][^>]*?)(/?\s*>)#',\n function($matches) {\n $tag = $matches[1];\n $close = $matches[2];\n if (stripos($tag, 'width=') === false) {\n $tag .= ' width="819" height="362"';\n }\n return $tag . $close;\n },\n $html\n );\n \n return $html;\n });\n});\n\n// 2. CSS dequeue on homepage (reduce unused CSS)\nadd_action('wp_enqueue_scripts', function() {\n if (is_front_page() || is_page('home-2')) {\n $handles = [\n 'contact-form-7',\n 'intlTelInput',\n 'magnific-popup',\n 'e-animation-fadeInUp',\n 'widget-image',\n 'pxl-base',\n ];\n foreach ($handles as $handle) {\n wp_dequeue_style($handle);\n wp_deregister_style($handle);\n }\n }\n}, 100);\n\n// 3. Security headers\nadd_action('send_headers', function() {\n if (!headers_sent()) {\n header('X-Content-Type-Options: nosniff');\n header('X-Frame-Options: SAMEORIGIN');\n header('Referrer-Policy: strict-origin-when-cross-origin');\n header('Permissions-Policy: geolocation=(), microphone=(), camera=()');\n header("Content-Security-Policy: frame-ancestors 'self'");\n }\n});\n\n// 4. CLS Fix: Preload Roboto font + override body font from Inter to Roboto\nadd_action('wp_head', function() {\n if (is_front_page() || is_page('home-2')) {\n // Preload the Roboto latin subset\n echo '' . "\n";\n \n // Inline @font-face for Roboto + body font override\n // This ensures the initial render uses Roboto, not Inter (from CCSS)\n echo '' . "\n";\n }\n}, 1); // Priority 1 = very early, before CCSS\n
https://tackontable.com/post-sitemap.xml
2026-04-08T12:44:26+00:00
https://tackontable.com/page-sitemap.xml
2026-05-31T20:31:00+00:00
https://tackontable.com/career-sitemap.xml
2025-05-19T15:36:23+00:00
https://tackontable.com/category-sitemap.xml
2026-04-08T12:44:26+00:00
https://tackontable.com/career-category-sitemap.xml
2025-05-19T15:36:23+00:00