1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    kkp is on a distinguished road

      0  

    Default defer parsing of jquery

    defer parsing of jquery


    Hi All,
    I am using below js code for jquery defer parsing.
    Here is my code:
    <script type="text/javascript">

    function downloadJSAtOnload() {
    var element = document.createElement("script");
    element.src = "jquery-1.3.2.js";
    document.body.appendChild(element);

    /*
    $(document).ready(function(){
    $("a").addClass("test");

    });
    */


    }

    // Check for browser support of event handling capability
    if (window.addEventListener)
    window.addEventListener("load", downloadJSAtOnload, false);
    else if (window.attachEvent)
    window.attachEvent("onload", downloadJSAtOnload);
    else window.onload = downloadJSAtOnload;

    </script>

    How can call $(document).ready for the above code?
    Please help me asap...

    Thanks in advance ...

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,069
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Perhaps you should be asking this in the jQuery support forums.

    Scott.

  3. #3
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,339
    Vote Rating
    130
    LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all

      0  

    Default


    Here's another place where people can help you with jQuery and loading issues.

    https://groups.google.com/forum/?fro...orum/requirejs

    Your jQuery code is very old. It must be well over 3 years old, but hopefully someone can help you.




Thread Participants: 2

Tags for this Thread