{"action":"opened","issue":{"url":"https://api.github.com/repos/muut/riotjs/issues/620","labels_url":"https://api.github.com/repos/muut/riotjs/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/muut/riotjs/issues/620/comments","events_url":"https://api.github.com/repos/muut/riotjs/issues/620/events","html_url":"https://github.com/muut/riotjs/issues/620","id":69668824,"number":620,"title":"Tag.update() is called too many times","user":{"login":"AndreasHeintze","id":2219544,"avatar_url":"https://avatars.githubusercontent.com/u/2219544?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasHeintze","html_url":"https://github.com/AndreasHeintze","followers_url":"https://api.github.com/users/AndreasHeintze/followers","following_url":"https://api.github.com/users/AndreasHeintze/following{/other_user}","gists_url":"https://api.github.com/users/AndreasHeintze/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasHeintze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasHeintze/subscriptions","organizations_url":"https://api.github.com/users/AndreasHeintze/orgs","repos_url":"https://api.github.com/users/AndreasHeintze/repos","events_url":"https://api.github.com/users/AndreasHeintze/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasHeintze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T20:07:33Z","updated_at":"2015-04-20T20:07:33Z","closed_at":null,"body":"While debugging the Riot code just to see how everything works I discovered that Tag.update is called multiple times on the same tag on the first page load, which seems like a waste. Especially if you have each loops in your tags. The problem is the self.update() call in the Tag.mount() method. I removed it and bootstrapped my app by manually calling Riot.update() and the execution flow was much better. \r\n\r\nMaybe this has some other disadvantages, I don't know yet, but it's definitely a speedup so far. What's your view on this?"}}