The code here seems to be a clean solution to workaround the problem -
but there's still the problem that we'd have to change each library's
init code.
http://stackoverflow.com/questions/18970350/using-jquery-load-with-requirejs
I hit the following problem on 5.4 which makes me some headaches:
Tapestry loads all modules/scripts using require.js. That causes all
the stuff be loaded after the window.onload event was fired. But many
libs initialize themself onload. For example have a look on
bootstrap/scrollspy.js delivered with tapestry - where the DOM is
scanned onload. Since onload is already fired, this code is never called.
As a quick fix one could simply call jQuery(window).trigger("load") -
but this might have strange side effects when other scripts expect
this event to be called only once.
Does anyone has an idea how to solve this?
Kind regards,
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]