Jump to content

how to make my website fast ?


Recommended Posts

That is a vague question.


Is many variables to them that could make them slower. By default they are fast.


A big helper would be to cache the results or pages somehow.

Optimize queries and create an index for the database.

Only fetch data you are using

Don't load lots of images or large ones, cache smaller thumbnail versions of them when can.


Use gzip or any other compression for js and css


Can test your pages out here and try to find out what is making it slow.


Link to comment
Share on other sites

I see a lot of people running queries in loops - those are sure to kill performance. Here is what I would suggest:


Create an array of values to measure the load time at specific points in the page creation. Then output the results so you can see how long each step in the process takes. Here is a quick example



$timings = array();
$timings['start'] = microtime(true);
//Code to load include files goes here
$timings['load_includes'] = microtime(true);
//Code to run some DB operations
$timings['run_db'] = microtime(true);
//Code to build the page
$timings['build_page'] = microtime(true);
//Page execution done, create output to show times to complete each step
$last = false;
foreach($timings as $processDesc => $timing)
    if($last != false)
        $processTime = $timing - $last;
        echo "{$desc}: {$processDesc}<br>\n";
    $last = $timing;
Link to comment
Share on other sites

topic say it all

i want some tips to make my website load fast ??


1. Remove any PHP / Server Side code

2. Strip out any <img> tags

3. Strip out any <script> tags

4. Strip out any <link> tags to CSS files


Job done. Should run like lightning!

  • Like 3
  • Haha 1
Link to comment
Share on other sites

  • 2 months later...

Follow and do some following steps these beneficial step might be work :

1. Simplicity– Make the page outline straightforward. Maybe a couple pictures and content. In any case, you likely need wealthier parts on your site.

2. Combination– Taking all the scripts and heaping them into a solitary script and, correspondingly, joining all CSS into a solitary template.

3. Think about actualizing as a substance conveyance system (CDN).

4. Actualize new picture configurations to decrease the extent of your pictures.

5. Assess your plugins.

6.Combine pictures into CSS sprites.

7.Enable pressure.

8. Utilization lapses headers

9. Minify JavaScript and CSS.

10. Audit your facilitating supplier and bun

Link to comment
Share on other sites

Pagespeed depends on different factors. Dont load it with heavy files, themes, etc. Maybe it happened 'cause of hosting.  I decided to use a CDN when the quantity of visitors grown up to 3000 per day. And it helped in my case.I use CDNsun they are low cost, they have an extensive network and help with integration

Link to comment
Share on other sites

  • 6 months later...
  • 4 years later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.