I’m looking for a way to defer the loading or asynchronously load the widget.js on my wordpress widget. any clues how would be greatly appreciated. Especially when it comes to trying to make a mobile website load faster. here’s a copy of the widget code:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 5,
interval: 10000,
width: 250,
height: 280,
theme: {
shell: {
background: '#576f73',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#eb0707'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: false,
avatars: false,
behavior: 'default'
}
}).render().setUser('randpc').start();
</script>