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

  • Home
  • SEARCH
  • 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 7839241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:22:54+00:00 2026-06-02T15:22:54+00:00

I have the problem that I don’t want to wait for extern scripts before

  • 0

I have the problem that I don’t want to wait for extern scripts before my jquery load-function is triggered.

Can I do something against it?

code of load function:

$(function(){ 
//    ... code here
});

UPDATE

Well defer works very well to ensure the functionality of my scripts.
But now I have huge Problems with the extern scripts functionality.

i.e. this twitter box does not load anymore

        <script type="text/javasript" charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js" defer="defer"></script>
        <script type="text/javascript" defer="defer">
        new TWTR.Widget({
          version: 2,
          type: 'profile',
          rpp: 4,
          interval: 30000,
          width: 275,
          height: 247,
          theme: {
            shell: {
              background: '#8ec1da',
              color: '#ffffff'
            },
            tweets: {
              background: '#ffffff',
              color: '#444444',
              links: '#1985b5'
            }
          },
          features: {
            scrollbar: true,
            loop: false,
            live: true,
            behavior: 'all'
          }
        }).render().setUser('xxxxxxxx').start();
        </script>

as well facebook connect has problems, like Buttons in chrome do not work any more, and so on …

  • 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-06-02T15:22:55+00:00Added an answer on June 2, 2026 at 3:22 pm

    To avoid blocking the page rendering while downloading an external script file use defer attribute.

    Xhtml sample:

    <script type="text/javascript" defer="defer" src="external/dont-wait-for-me.js"></script>
    

    More info: How exactly does <script defer="defer"> work?

    Also, you can load the script files dynamically from Jquery using getScript:

    $(function(){ 
        //Do stuff first
        //...
        //Then...
        $.getScript('external/load-me-after-the-dom-is-ready.js', function() {
           alert("the js is loaded");
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a problem that I don't really know how to go about.
i have a problem, that i don't know how to solve it. i have
Let's say we have two concave 2d polygons(A, B), that don't intersect. The problem
So, one problem pattern that I keep coming across and don't have a good
In a couple of scripts that I use I have problem that is intermittent.
i have a problem that i can't solve ! (sqlite3, but i think it
I have a problem that I don't know how to solve. I have have
I have a strange problem that I don't understand about DataPager. After changing the
I have a little problem that I don't understand. I have a db that
I have a homework problem that I really don't know how to start. Here

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.