You can enable in map details dynamic loading placemark content - the code will less.
Open map details and set in Advanced options JQuery or MooTools content loading style
unfortunatelly i did and there is no diference in the ratio. The code is too big..Isn't any way to download the html throw an external css so there will be no issue in the html code?