If $(document).load("index.html"); does some have an example of how to using $(document).on("load", function(){} to load a page. I keep seeing his script all over but haven't see anyone with an actual example.
NickMNS
8:39 pm on Jan 27, 2017 (gmt 0)
$.load() is deprecated and replaced with $.on('load',function(){}) $.load() was a shortcut and the same thing. see [api.jquery.com...]
lajoey
1:20 pm on May 21, 2017 (gmt 0)
.load() is a AJAX method which makes AJAX calls like loading files from server, xml, json,html,text, in asynchronous manner. The jQuery Load is very useful when doing jQuery programming. When we use .on in jQuery it does attaching an event handler function for one or more events to the selected elements - api.jquery.com/on/ [api.jquery.com]
[edited by: not2easy at 8:35 pm (utc) on May 21, 2017] [edit reason] snipped link [/edit]