// Fix: Forces $elly upsell modal to initialize on DOMContentLoaded
// so the modal fires on the first add-to-cart instead of the second.
// Added 2026-03-17 — remove if $elly resolves this natively.
// Wait for ALL resources including $elly's script to load
window.addEventListener('load', function() {
var attempts = 0;
var interval = setInterval(function() {
attempts++;
if (typeof TDF !== 'undefined' && typeof TDF.init === 'function') {
TDF.init();
clearInterval(interval);
}
if (attempts >= 20) clearInterval(interval); // stop after ~2 seconds
}, 100);
});
Gifting has never been easier
Perfect if you're short on time or are unable to deliver your gift yourself. Enter your message and select when to send it.