Page performance issue

26 views
Skip to first unread message

Ashish Dandekar

unread,
Jun 10, 2015, 8:23:15 AM6/10/15
to ang...@googlegroups.com
Hi 

I have one page which contains date picker and next prev buttons.
when page loads page shows current week data.
When user clicks on next button then 
1) clear Div Html using $("#div").html('');
2) get data from ajax for next week.
3) load data on page (using Dhtml Table is created and $compile method is called)

so the issue is when page loads first time it is working fine. but when user starts clicking next buttons one by one the page performance is getting slow after 8-9 clicks.
When I type in text box it appears after 5-6 sec.

Robert STAICU

unread,
Jun 10, 2015, 8:32:58 AM6/10/15
to ang...@googlegroups.com
Are you using jquery or angular?
Angular should know when you are deleting elements...
I suggest using angular or jquery for good performance. I know jquery is a lot faster and you would like to use it sometimes, but no.
Message has been deleted

Ashish Dandekar

unread,
Jun 10, 2015, 10:04:47 AM6/10/15
to ang...@googlegroups.com
I am using angularJS
Reply all
Reply to author
Forward
0 new messages