(function () { 'use strict'; fetch('/static/css/header-search.v121.css', {cache: 'no-cache'}) .then(function (response) { if (!response.ok) throw new Error('header search stylesheet unavailable'); return response.text(); }) .then(function (css) { const style = document.createElement('style'); style.id = 'doffice-header-search-styles'; style.textContent = css; document.head.appendChild(style); const script = document.createElement('script'); script.src = '/static/js/header-search.v130.js'; script.async = true; document.body.appendChild(script); }) .catch(function (error) { console.error('DOFFICE header search was not loaded:', error); }); })();