Redirect connection.start to page load if needed #578

Merged
merged 4 commits into from Aug 4, 2012
Commits on Aug 3, 2012
  1. @NTaylorMullen

    Fixed #215, #383 and #491

    NTaylorMullen committed Aug 1, 2012
    All the bugs fixed in this commit are duplicates.
    
    Executing Javascript once the DOM yielded constant loading in some
    browsers where they viewed the page as continuously loading since the
    entire page had not been loaded, even though the DOM had.  Fixed this
    issue by re-routing the connection.start call to the window.load event
    by default but also allowing the user to overwrite the default via the
    startAfterPageLoad flag.
Commits on Aug 4, 2012
  1. @NTaylorMullen

    Changed Flag name waitAfterPageLoad

    NTaylorMullen committed Aug 4, 2012
    From startAfterPageLoad
  2. @NTaylorMullen

    Addressed code review issues

    NTaylorMullen committed Aug 4, 2012
    Made deferral flag check more consistent.  Fixed a comment to abide by
    consistency
  3. @NTaylorMullen

    Saved referrence to $(window)

    NTaylorMullen committed Aug 4, 2012
    Replaced all $(window) usages with the new saved referrence