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); }());

天美传媒

Business Advice

The ins and outs of running a business. Real, tactical guides. No fluff.

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

Explore Sections Under

Business Advice
No items found.

Explore the all-in-one finance solution built for finance teams

Save time and money with borderless payments, corporate cards, expense management, and more