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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:06:47+00:00 2026-06-01T14:06:47+00:00

Getting a strange problem when loading the twitter widget asynchronously on IE. It loads

  • 0

Getting a strange problem when loading the twitter widget asynchronously on IE. It loads just fine, but for some reason doesn’t apply any style (color, background are blank/default) only on IE (7,8,9).

Loading the script the standard way works also in IE.

The code looks like this and works on all browsers (including IE, but without the style)

<div id="twitter_div"></div>
<script>
    jQuery(window).load(function () {
        jQuery('<link rel="stylesheet" type="text/css" href="http://widgets.twimg.com/j/2/widget.css" >').appendTo("head");
        jQuery.getScript('http://widgets.twimg.com/j/2/widget.js', function () {
            var twitter = new TWTR.Widget({
              id: 'twitter_div',
              version: 2,
              type: 'profile',
              rpp: 4,
              interval: 6000,
              width: 'auto',
              height: 300,
              theme: {
                shell: {
                  background: '#add459',
                  color: '#382638'
                },  
                tweets: {
                  background: '#ffffff',
                  color: '#141114',
                  links: '#4aed05'
                }   
              },  
              features: {
                scrollbar: false,
                loop: false,
                live: false,
                hashtags: true,
                timestamp: true,
                avatars: false,
                behavior: 'all'
              }   
            }).render().setUser('chucknorris').start();
        })
    })
</script>

You can see this live on this link.

It loses the style on IE even when set to chucknorris.

  • 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-01T14:06:48+00:00Added an answer on June 1, 2026 at 2:06 pm

    What you think to put the css in you own css to avoid problems

    <style type="text/css">
    #twitter_div .twtr-doc, #twitter_div .twtr-hd a, #twitter_div h3, #twitter_div h4 {
    background-color: #ADD459 !important;
    color: #382638 !important;
    }
    #twitter_div .twtr-bd, #twitter_div .twtr-timeline i a, #twitter_div .twtr-bd p {
    color: #141114 !important;
    }
    #twitter_div .twtr-avatar {
    display: none;
    }
    #twitter_div .twtr-new-results, #twitter_div .twtr-results-inner, #twitter_div .twtr-timeline {
    background: white !important;
    }
    #twitter_div .twtr-tweet a {
    color: #4AED05 !important;
    }
    </style>
    

    Also good is it if put it in your main.css file to get a better caching experince of your static stuff and is all in one place

    <script>
        jQuery(window).load(function () {
            $("head").append("<link rel='stylesheet' type='text/css' href='http://widgets.twimg.com/j/2/widget.css' />");
            jQuery.getScript('http://widgets.twimg.com/j/2/widget.js', function () {
                var twitter = new TWTR.Widget({
                  id: 'twitter_div',
                  version: 2,
                  type: 'profile',
                  rpp: 4,
                  interval: 6000,
                  width: 'auto',
                  height: 300,
                  theme: {
                    shell: {
                      background: '#add459',
                      color: '#382638'
                    },  
                    tweets: {
                      background: '#ffffff',
                      color: '#141114',
                      links: '#4aed05'
                    }   
                  },  
                  features: {
                    scrollbar: false,
                    loop: false,
                    live: false,
                    hashtags: true,
                    timestamp: true,
                    avatars: false,
                    behavior: 'all'
                  }   
                }).render().setUser('chucknorris').start();
            })
        })
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use PrintWriter.java but I am getting a rather strange problem
I am getting a strange problem in iOS 5.0 (9A334). The problem is I
I'm getting some strange, intermittent, data aborts (< 5% of the time) in some
I have fancybox installed on my website and I am getting some strange behaviour.
I have a strange problem: I am getting the html source from url using
I've got a strange problem. I've been using just javascript forever now, and I'm
I have installed psyco in one machine with no problem, but i'm getting an
I'm getting a strange problem, claiming that $ is not a function/is undefined. Obviously,
Hi I'm getting a strange problem while inserting records into database. In my button
After recently installing Windows 7 Professional, I'm getting a strange problem removing a TableItem

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.