data-persist="garlic" doesn't work after window.load event
oppianmatt opened this issue · comments
Say we load garlic.js after the window.load event has fired. Then the content marked up with data-persist="garlic" doesn't work since:
b(window).on("load", function() {
b('[data-persist="garlic"]').each(function() {
b(this).garlic()
})
})
Doesn't fire. It's not like the jquery dom ready event which triggers even if it already ran.