Announcement

Collapse
No announcement yet.

vBulletin Javascript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] vBulletin Javascript

    This is the code for deferring JavaScript loading by Google!
    HTML Code:
    <script type="text/javascript">
    
     // Add a script element as a child of the body
     function downloadJSAtOnload() {
     var element = document.createElement("script");
     element.src = "deferredfunctions.js";
     document.body.appendChild(element);
     }
    
     // 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>

    My question is:

    Can we add any vBulletin JavaScript file that is not necessary on rendering the page?

    Thank you!
    Zzz!!!! aBlog!
    aBird tweets!

  • #2
    Bump for answer...

    Comment


    • #3
      I can't think of any javascript not necessary at page load.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X