Optimize data loading per visualization type

The tab behavior has been changed as well—now it triggers a reload of
the page, which makes it easier to do the optimized data loading.