Open pages its css and database parallel

80 Views Asked by At

I have big databases that contain large no of tables and have PHP/HTML file with java script and css in separate folders.Now I want is to make my page load faster when user navigates through our page then the content on database, its css and PHP/HTML file that run parallel. It means there is no blockage of any stream of file or one by one each file is opening which take lots of time. Each work separates and assigns at one place to make page what is it mean for? So how can we achieve if it is there is any code that allows all file work in parallel including database?

1

There are 1 best solutions below

2
On BEST ANSWER

You can place all your <script> tags at the bottom of your <body> tag. According to Yahoo's Best Practices for Speeding Up Your Web Site.

The problem caused by scripts is that they block parallel downloads. The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel. While a script is downloading, however, the browser won't start any other downloads, even on different hostnames.

You cannot do the same for for your stylesheets. Not only is it not W3C-complaint, but it actually won't help.

While researching performance at Yahoo!, we discovered that moving stylesheets to the document HEAD makes pages appear to be loading faster. This is because putting stylesheets in the HEAD allows the page to render progressively.


On a side-note, if it's taking that much time to load your pages, also look into your PHP and SQL queries. Try to optimize those as well.