AndrewB wrote:Great update! One suggestion though.
Identifying what belongs to whom takes up a lot of resources on every refresh. So when I am eliminating someone, and clicking attack 100 times, it will slow down the process dramatically.
So here are my questions:
1. Can we cache it somehow? Probably not, because the armies might have been changes between those refreshes. Or maybe just cache XML? Because that AJAX call is still expensive.
2. Can we make this identification optional? So I will turn it off, when I am doing refreshes often...
Great job!
AndrewB , this version improves the 'what belongs to whom' code, I was searching the whole page, for all places the player name appears, (including the game log which was probably the performance problem), this version only attaches the mouseover code to the player list on the right of the map.
I have also added an option to turn it off if required, but please let me know if I have improved the performance at all.
Version .3 : http://robertstocks.co.uk/conquerClub/conquerclub-rjs.3.user.js