refining html document size