Skip to content

Commit

Permalink
Update async.html
Browse files Browse the repository at this point in the history
remove twitter feed since API changed and increased waitSeconds
  • Loading branch information
millermedeiros committed Mar 13, 2013
1 parent 558ac9e commit f6ed930
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions examples/async.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ <h2>JSONP</h2>
by passing it at the end of the dependency URL preceded by a exclamation mark (<code>!</code>), e.g.: <code>async!http://example.com/?foo=bar!jsoncallback</code>
</p>
</div>
<h3><a href="http://twitter.com/millermedeiros">@millermedeiros</a> Twitter feed</h3>
<div id="twitter-feed"></div>
<h3>Flickr feed</h3>
<div id="flickr-feed"></div>
</div>
<script src="../lib/require.js"></script>
<script>
require({
waitSeconds : 15, //make sure it is enough to load all gmaps scripts
waitSeconds : 120, //make sure it is enough to load all gmaps scripts
paths : {
async : '../src/async' //alias to plugin
}
Expand All @@ -54,22 +52,10 @@ <h3>Flickr feed</h3>
// Notice that flickr uses "!jsoncallback".
require(
[
'async!http://twitter.com/statuses/user_timeline/millermedeiros.json',
'async!http://api.flickr.com/services/feeds/photos_public.gne?id=27041612@N06&format=json!jsoncallback',
'async!http://maps.google.com/maps/api/js?sensor=false'
],
function(feed, photos){

//twitter

var feedDiv = document.getElementById('twitter-feed'),
el;

for (var i = 0, n = feed.length; i < n; i += 1) {
el = document.createElement('p');
el.innerHTML = feed[i].text;
feedDiv.appendChild(el);
}
function(photos){



Expand Down

0 comments on commit f6ed930

Please sign in to comment.