add a 'loaded' event to .on() method

add a 'loaded' event to .on() method

Right now, if you want to manipulate dynamically loaded as well as static elements, it's necessary to use
 
  1. .on(
  2.       {
  3.             'DOMnodeInserted', 
  4.             function(){
  5.                   $(this).css('color','#000');
  6.             }
  7.       },
  8.       '#dynamicElement'
  9. );
  10. $('#staticElement').trigger('DOMnodeInserted');

But it would be iffy, since DOMnodeInserted is not consistently supported, and static elements require a .trigger()

It would be nice to be able to simply utilize a generic "load" event that is fired as soon as the element is .ready(), so to speak.

  1. .on(
  2.       {
  3.             'load', 
  4.             function(){
  5.                   $(this).css('color','#000');
  6.             }
  7.       },
  8.       '#dynamicElement, #staticElement'
  9. );