page-load-time

Minify an Entire Directory While Keeping Element/Style/Script Relationships?

Do any solutions currnetly exist that can minify an entire project directory? More importantly, do any solutions exist that can shorten classnames, id's, and keep them consistent throughout all documents? Something that can turn this: Index.html --- <div class="fooBar"> <!-- Code --> </div> Styles.css --- .fooBar { // Comments...

Which CSS organization method is fastest?

If I have the following HTML: <p id="p1">Paragraph 1</p> <p id="p2">Paragraph 2</p> <p id="p3">Paragraph 3</p> <p id="p4">Paragraph 4</p> how should I organize the CSS to achieve the fastest page load time? I could organize it by HTML element, like this: #p1 { font-size:12px; color:red; } #p2 { font-size:12px; color:blue; } #p3 { fo...

Recently my site has been slow and Ive been getting timeout messages in browser - whats wrong?

How can I diagnose timeout problems and slow page loading with my site, I have ySlow plugin in firefox and it shows that grade A/B for most pages so i would expect pages to load quickly. Should I contact my hosting company? The company I bought my domain name from? There is not much load on the server at present and I am using a v. fast ...

browser showing half progress bar even after page is fully rendered

Hi, what could be the reason if browser is showing progress bar (stuck at half) as if it is still trying to load something, even after the page is rendered. this is an intranet ASP.NET website. how can I find out the reason? the browser is IE8. actually this started after the browser is upgraded from IE6 to IE8. not sure if this issue ...

Internet Explorer 8 waits until page is completely rendered and javascript is executed

We have a pretty big web page with a bunch of javascript. When loading it in Firefox/Chrome, the page gets loaded gradually. First the html that already is received is rendered and shown and then the javascript gets executed. Internet Explorer 8 however waits until the request is completely received and its javascript executed before it...

A Firebug Net Panel for IE?

What are the alternatives on IE 8 that can work like the Firebug Net Panel? ...

How to force IE to show page content before finishing all Javascript execution?

On a Ruby on Rails development environment, a page will be shown after 30 seconds on Firefox, but takes 90 seconds on IE 8 (with IE 7 Compatibility Mode). Further investigation shows that it should be Javascript that slowed down the page, because if Javascript is turned off, then the page content will also show in 30 seconds. Because t...

If Javascript code block is not at end of HTML file, but is using jQuery's $(document).ready(function() {...}), will it slow down the page display?

It is said that Javascript code should be all placed at the end of HTML file, so that the page content is shown first, for the user to see something (so that the user is satisfied to see something instead of waiting another 12 seconds, for example). But to better encapsulation of the HTML and match Javascript code, such as an "Image Car...

Testing server load time with PHP?

Is there a way to determine how long it takes a web page, and all it's content, to load with PHP? I have already tried this: $time_start = microtime(true); (All the content of the web page here) $time_end = microtime(true); $time = $time_end - $time_start; echo $time; However, the problem with this (as far as I can tell) is that I'...

Is the "async" attribute/property useful if a script is dynamically added to the DOM?

This question is sort of a tangent to Browser support for <script async=“true” />?. I've seen a few scripts lately that do something like this: var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'http://www.example.com/script.js'; document.getElementsByTagName('head')[0].appendChild(s); This...

Using Curl for load time testing PHP

Using PHP if I load the URL http://www.cars.com with Curl then use curl_getinfo() to find the total time it takes to load... Will it calculate the load time including all images, and anything else displayed on the page. Or just the HTML (or whatever) file that is located at http://www.cars.com ? curl_getinfo($ch, CURLINFO_TOTAL_TIME); ...

How can we keep OpenX from blocking page load?

We're using OpenX to serve ads on a number of sites. If the OpenX server has problems, however, it blocks page loads on these sites. I'd rather have the sites fail gracefully, i.e. load the pages without the ads and fill them in when they become available. We're using OpenX's single page call, and we're giving divs explicit size in CSS ...

Which is better for JavaScript load-time: Compress all in one big file or load all asynchronously?

Hi, A simple question that I'm not sure if it has a short answer! Description I have a files of JavaScript that to be loaded in a website here are some notes about them: They are all comes from the same domain (no cross domain loading needed) They are identical around the website. There are several files, like jQuery, and 5 other plu...