SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Location
    India
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facebook Social Comment Box

    I have placed Facebook Social Comment Box on my site mixsms.com to have discussion. It is fine and fit for my needs, but I noticed that after placing it on my pages, it takes too long to load a page. In other words it has increased page load time or doubled it.

    Please guide me if there is any way to load my page asynchronous so script dont render the page slowly.

    Thanks in advance for your support.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by mixsms View Post
    I have placed Facebook Social Comment Box on my site mixsms.com to have discussion. It is fine and fit for my needs, but I noticed that after placing it on my pages, it takes too long to load a page. In other words it has increased page load time or doubled it.

    Please guide me if there is any way to load my page asynchronous so script dont render the page slowly.

    Thanks in advance for your support.
    Scripts block the loading process of the page. Move your scripts to the end of the body, just before the </body> tag.

    Code html4strict:
    <html>
    <head>
        ...
    </head>
    <body>
        ...
        <script src="script.js">
    </body>
    </html>
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •