Need to fire an event after complete page gets loaded in backbone js

215 views Asked by At

I need to fire an event after complete page gets loaded.

I have used Backbone js library for my application.I have multiple ajax calls in each of the page.But i need to fire some code after completely page gets loaded.

1

There are 1 answers

0
manu29.d On

You might want to use _.defer().

According to the docs:

Defers invoking the function until the current call stack has cleared, similar to using setTimeout with a delay of 0

I would use it as a last statement in render().