Better formatting and compression of resources