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 8248753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:18:02+00:00 2026-06-07T23:18:02+00:00

We have main layout page, and we have some external scripts, that loading after

  • 0

We have main layout page, and we have some external scripts, that loading after page loaded via ajax. Some of them are really slow, cause they are opening socket.io connection. This slow down whole page load.

I have some questions:

  1. Is it ok, if external widget contains more than 5 scripts in body? What reasonable limits we should have on count of scripts per service?

  2. <script src="/path/to.js"></script> embedded in ajax loaded html – will make sync or async query to server?

  3. How to avoid browser block, during external script load?

  4. How to improve speed loading time, when we have a lot of external scripts?

Update: Finally I use HeadJS library.

  • 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-07T23:18:03+00:00Added an answer on June 7, 2026 at 11:18 pm
    1. while it is ok to load many different scripts, it is encouraged to cut down on the different HTTP calls, as most browsers allow for up to 2 concurrent connections per each domain, this means your code will load them 2 by 2, and will not continue to run until they are loaded. best practices are to minify, and concatenate all of your scripts into fewer files.
    2. as far as i know regular script tags will usually load synchronously, slowing down even ajax loaded html.
    3. there are a few good proposals to avoid browser blocks. either load your scripts at the bottom of your body tag, to ensure parsing everything before working on the heavy scripting. you can also use the defer, and async tags (the latter is HTML5), or try loading your scripts after the document sends it’s “ready” event.
    4. less HTTP calls, postpone parsing of some JS to when needed, and defer+async load your javascript externals to prevent freezing the browser.

    a good read is this: http://www.sitepoint.com/a-detailed-breakdown-of-the-ltscriptgt-tag/

    it is very thorough in explaining the history and evolution of the script tag itself, and has some of it’s best practices.

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

Sidebar

Related Questions

I have the following layout with a sidebar that is only present on some
The background is : I have layout page main.gsp I need to conditionally show
i have a yii site that contains main layout. in this main layout file
I have a main page that loads a content of a div: var content
I wish to list some Categories name on my layout main.php page. Since the
I have a standard page layout. A header, a footer, a main block of
I have a layout that requires the product description on the reviews page. How
so I have my main layout as such: <div class=menu> <?php include('/menu.php'); ?> </div>
I have two layouts, one is the main layout inside which I am including
I have 3 main elements in my XML layout (also see the image): The

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.