$j( document ).on( 'ready', function() {
should be replaced by:
$j( document ).ready( function() {
The former has been deprecated for a long time:
There is also $(document).on( "ready", handler ), deprecated as of jQuery 1.8 and removed in jQuery 3.0.
Please fix
jQuery(document).ready(function() {
jQuery(document).mPageScroll2id("scrollTo","#my-id");
// ERROR: Cannot read property 'disablePluginBelow' of undefined
]]>My advice is, rewrite everything.
https://www.ads-software.com/plugins/fluxlive/
]]>Now, my problem is that a lot of lightbox-like script replace or add classnames to images and other content.
Those scripts have of course already run before my script ever runs.
Thus: they don’t work because those replacements are never done on the classnames that go with possible additional images. (To name one mediatype.)
What would be a good way to approach this and get as much scripts as possible to (re)load as possible after my button has done it’s task? (It’s fairly easy to just reload a single script that I know about, but I don’t know what kind of plugins each author runs on their site, of course.)
Could I just get the page to fire a new document.ready status and hope for the best?
]]>jQuery(document).on( 'ready post-load', function()
Gives me some “Uncaught ReferenceError: jQuery is not defined” errors.
At the moment I am deferring my jQuery 1.11.1, and loading it in the bottom of the page. removing deferring and moving it to the header solves the problems (and slows down my site).
I’m no jQuery wizard, but shouldn’t you use .ready() instead of .on( ‘ready post-load’ ?
As far as I know the entire $(document).on( "ready", handler )
was deprecated since jQuery 1.8 see: https://api.jquery.com/ready/
https://www.ads-software.com/plugins/jetpack/
Example of page with this problem (pr. 10/12/2014): https://squazz.dk/israel/vandring-i-jesu-galilaeiske-fodspor/
]]>Here’s the URL:
https://www.trickdogacademy.com/brincante/
Thanx in advance for your help and for the great plugin.
cheers.
https://www.ads-software.com/plugins/ready-ecommerce/
]]>https://www.ads-software.com/plugins/ready-ecommerce/
]]>