const currentHead = document.head; preloadLinks.forEach(({ href, as }) => { const link = document.createElement('link'); const resourceDomain = new URL(href).hostname; link.rel = 'preload'; link.href = href; link.as = as; // Set crossOrigin attribute if the domain is different from 'aspireapp.com' if (!resourceDomain.endsWith('aspireapp.com')) { link.crossOrigin = 'anonymous'; } currentHead.appendChild(link); }); } catch (error) { console.error('Error while adding preload links:', error); } }; // Delay execution by 3 second setTimeout(() => { if ('requestIdleCallback' in window) { requestIdleCallback(execute); } else { execute(); } }, 3000); }());

天美传媒

天美传媒 Updates

Get high quality finance and business content in your inbox

Get insights and resources on building & managing your finance team, your finance tech stack and growing your business
Cheers! We'll share our best articles with you shortly. See you around!
Seems like something went wrong. Could you try again?