1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    samepps is on a distinguished road

      0  

    Default Unanswered: $(document).ready vs Ext.onReady()

    Unanswered: $(document).ready vs Ext.onReady()


    As the title suggests, whats the difference? As I see their definitions are the same, but apparently Ext.onReady() does some extra/specific for ExtJS magic without which my ExtJS app does not work.

    I've posted the detailed question of my issue here. Any input on this topic would be really helpful.

    Thanks for any help.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,018
    Answers
    467
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    If you're using dynamic class loading, Ext.onReady() means wait til the DOM is ready and all required classes are loaded.

    If you're not using the loader, then onReady() is essentially the equivalent of $().ready();
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    samepps is on a distinguished road

      0  

    Default


    Thank you for your support. Your input actually helped alot. But I have another question which google-fu din't help me alot.

    Is it wise to use multiple Ext.onReady();? What happens if I have multiple onReady functions in multiple documents and what if I have multiple onReady in one document?
    I'm just interested in whats the best practice?

    Thanks alot for good support. =)

    Sam.

Thread Participants: 1

Tags for this Thread