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,218
    Vote Rating
    483
    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,557
    Vote Rating
    348
    LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of LesJ has much to be proud of

      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