If you are going to pay for data that is transferred I suggest you do the following:
- Packaging and minification of css files
- Packaging and minification of js files
- Avoid inline css. always use as a separate file
- Use frameworks such as Angle or Backbone to load information that is populated on the screen. Ex. Grids. So you only traffic json instead of html which is much heavier.
- use Sprite css for images because it reduces the number of requests to the server. I also like to convert small images to 64 base and put right into css file but this is harder to maintain. If you use visual studio for development you can install webessentials that helps a lot in this, including it minifica css and js files too.
- Optimize the images to always stay in the smallest size. Usually use png but not always it is better. Take a look here https://stackoverflow.com/questions/2336522/png-vs-gif-vs-jpeg-when-best-to-use
Static files like . js, images, . css, and . html are saved in the browser cache and are not always transferred. when they are cached the server returns http code 304 (unmodified) this also helps for a smaller data transfer.
I hope I helped. Since I don’t know if you work with what technology you work with, I won’t be able to help anymore. If you’re working with Asp.net using iis as a server see how to package and minify all css or js files into one.
I don’t quite understand what your problem is.
– Paulo
Due to the size of the page it would be better to put pages as a modal (soon would have two pages within one) or separate files
– Ricardo
You can load inside the modal external pages using
.load()
– Paulo
This loading would be when the user clicks on the button that opens the modal? ajax type?
– Ricardo
Yes, please see this link http://answall.com/questions/44636/comort-para-quando-for-clicado-um-button-creative-um-element-na-página/44699#44699
– Paulo