How would you optimize front-end rendering performance for large data grids in a practical coding exercise for allwhere?