Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6179065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:35:02+00:00 2026-05-24T00:35:02+00:00

I know you can use the defer= html attribute to defer javascript files, but

  • 0

I know you can use the defer=”” html attribute to defer javascript files, but it’s only supported in IE (lol) and that will only defer javascript files, I need to defer the entire plugin from loading.

Is there any way to do this, at all? I love the Facebook integration and such, but the plguins are SO SLOW. It more than doubles the load time.

Thanks!
~ Jackson

<div class="socialplugins"><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="DesignSweeter">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>

<div class="socialplugins">
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=218305128208494&amp;xfbml=1"></script><fb:like href="http://designsweeter.com/" send="false" layout="box_count" width="55" show_faces="true" font=""></fb:like>
</div>

<div class="socialplugins">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone size="tall" count="true"></g:plusone>
</div>

NOTE: The .socialplugins class is just for positioning in my header.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:35:03+00:00Added an answer on May 24, 2026 at 12:35 am

    Load javascript files dynamically in non-blocking fashion:

    http://berklee.github.com/nbl/

    or

    https://github.com/rgrove/lazyload/

    This technique works somewhat like this:

     var script = document.createElement("script");
     script.type = "text/javascript";
     script.src = "file1.js";
     document.getElementsByTagName("head")[0].appendChild(script);
    

    This new element loads the source file file1.js. The file begins downloading
    as soon as the element is added to the page.
    The important thing about this technique
    is that the file is downloaded and executed without blocking other page processes,
    regardless of where the download is initiated.
    You can even place this code in the
    of a document without affecting the rest of the page (aside from the one HTTP
    connection that is used to download the file).

    this book: “High Performance JavaScript” by Nickolas Zakas has a lot of interesting information about JavaScript performace optimization.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I can use the attribute [Authorize(Roles=client)] to make sure that only authenticated
I know you can use (read) to get a user-inputted expression, but (read) will
I know I can use MoveWindow to move it but I only want to
I know you can use source control software for source code, but can you
I know I can use something like User.sort {|a, b| a.attribute <=> b.attribute} or
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
I know you can use a javascript to do this <script type=text/javascript> touchMove =
I know you can use python and other scripting languages in android. But I
I know I can use number_format, but is there a way to represent base32
I know I can use the parameters, but what is the right way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.