Open oppianmatt opened 7 years ago
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.
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:
Doesn't fire. It's not like the jquery dom ready event which triggers even if it already ran.