hi everyone? i have a page that it's size is 50kb(for example) and it contains text,images,flash items and has transactions with a mysql database(a common page). so how can decrease time of page loading and page transactions? i think most important thing is image loading(regardless of flash items). thank you in advance.
Geez guys this is a PHP section and you all recommend using photoshop There are numerous options here - Gzip the content on your page using PHP output buffering - Cache the page to disk/memory for a time period so you only hit the database the first time the page is loaded and never again. - Host your images on a separate domain or server. HTTP 1.1 has at most 2 concurrent connections so if you have 2 servers loading a user can have 4 connections at a time. - Use etags and expiry headers on your images so they are cached in the User agent and only hit your server once. Some of these arent that easy to implement but all will have a MASSIVE effect on your load time Hope this helps
If it's doing a lot of mysql queries you might to also make sure your db is optimised. Ensure also that SELECTS are not selecting *, only SELECT the fields required. Make sure any multiple table SELECTs are done via joins where possible.
Agree with most. About gzipping though, most web servers already do that. So you don't need to do that on script level.
use coockies to evade reload the same item twice so your page load heavily only for the first time in the user's browser then it'll be super lite
I'm not sure what 'item' you are referring to there. But in general, this is not true. Using cookies will just add extra overheads, because every time the browser sends a request to the server, all cookies for that domain (and path, if specified) will also need to be sent.