Skip to content

Instantly share code, notes, and snippets.

@toamitkumar
Created March 30, 2012 02:06
Show Gist options
  • Save toamitkumar/2245787 to your computer and use it in GitHub Desktop.
Save toamitkumar/2245787 to your computer and use it in GitHub Desktop.
abhi4717
Day 1:
1.
Excellent. Like the clear separation of html, css and js.
2.
$("<li>"+data[i].text+"</li>").appendTo("#ulTweets").hide();
# This will add "li" to the DOM inside loop. Not good for performance.
# Its better to build a string inside a loop and add the whole string to the DOM outside of loop.
Day 2:
Good work
@abhi4717
Copy link

thanks Anubhav.
Your words were truly encouraging. I have made the changes mentioned. Thanks for bringing it to my notice. I will sincere efforts to avoid things like this.

@toamitkumar
Copy link
Author

its me Amit :)

@abhi4717
Copy link

abhi4717 commented Apr 2, 2012

Oh sorry... I had read mail from Anubhav. So I thought it might be him.... Thanks for the comments. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment