page-load-time

How to get total web page response time from a HAR file?

我的梦境 提交于 2019-11-30 19:07:05
问题 In the following image, I want the total response time from the webpage. I can't seem to find it in the file sample HAR file, i.e. 38.79s in this case. Does anyone know how to get this? I am going to use Selenium along with Firebug and NetExport to export the HAR file, but right now I am trying to do it manually. Adding the individual responses does not give correct numbers. At some point I would like a Java program to find and extract the total response time. 回答1: The total load time is not

Is a 200ms decrease in page load time significant? [closed]

吃可爱长大的小学妹 提交于 2019-11-30 17:51:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I made a few tests with lab js in one of the sites I've developed and got a reduction of 200ms in the page load time. The total time spent now after backend processing is around 1.5 seconds. I was wandering if its worth the trouble. Is 200ms a huge gain? A ridiculous one? I know that page load times affect page

Page Load Timeout - Selenium Webdriver using C#

好久不见. 提交于 2019-11-30 16:55:51
I am using Selenium 2.25 WebDriver I'm having a issue with finding the elements on the page and some times my test cases able to find element and sometime the page is does not load and its due to page load and if i add this below line and it seems like working: driver.Manage().Timeouts().SetPageLoadTimeout(TimeSpan.FromSeconds(2)); my question is, i dont want to have my code scatter with the above line of code, is there a way to make it centerlize in one place? Any help would be greatly appreciated, thanks! If you set the timeout once, it's set for the lifetime of the driver instance. You don

Page load time with JavaScript

喜欢而已 提交于 2019-11-29 22:20:20
I am looking for a proper way to test the time it takes a page to fully load all its resources. What I've done so far is add: window.startTime = (new Date).getTime(); // after the title in my page And window.onload = function () { console.log((new Date).getTime() - window.startTime); } window.addEventListener('load',function () { console.log((new Date).getTime() - window.startTime); },false); Way down in the footer. Is this a good way to measure? Could there be differences between load time and perceived load time? From what I'm seeing the events trigger after all the resources have loaded

Page load time with JavaScript

馋奶兔 提交于 2019-11-28 19:02:52
问题 I am looking for a proper way to test the time it takes a page to fully load all its resources. What I've done so far is add: window.startTime = (new Date).getTime(); // after the title in my page And window.onload = function () { console.log((new Date).getTime() - window.startTime); } window.addEventListener('load',function () { console.log((new Date).getTime() - window.startTime); },false); Way down in the footer. Is this a good way to measure? Could there be differences between load time

Windows 7 php + Symfony2 terribly slow

前提是你 提交于 2019-11-27 17:59:47
This is an issue I've been having for a long time. I want to run PHP applications on my windows computer and it has a terribly high load time, around 10-25 seconds. I have tried many things: First I tried a simple XAMPP installation I read WAMP might be faster, so I tried WAMP, too. It gave me the same results Then I installed an nginx server with PHP, but it did not help either Finally, I installed an Ubuntu 11.10 in VirtualBox and I shared my windows files containing my project, but the result was even worse: over 22 second load time each time. UPDATE : I have even tried APC - it improved a

When using @media queries, does a phone load non-relevent queries and images?

拈花ヽ惹草 提交于 2019-11-27 13:26:19
If I base my CSS on mobile styling, then use @media queries for gradually larger displays (tablets, desktops etc), will the mobile devices use the desktop styles? I believe that typically, mobile devices will load all images even if they don't apply to its own particular media size. Meaning it will load all images and hide ones not matching its query-based stylesheet. What I am trying to do is use one background for the larger version of the site: .splash { background: #1a1a1a url('/assets/imageLarge.png') no-repeat; } and another for the mobile version: .splash { background: #1a1a1a url('

How to properly configure Implicit / Explicit Waits and pageLoadTimeout through Selenium?

Deadly 提交于 2019-11-27 05:42:07
I currently have the following setup, but I'm not sure that my waits (Implicit and pageLoadTimeout) are working. Is this the proper implementation? By putting it in the @Before("@setup"), does it work for every Scenario or Step Definition run? Will the driver wait accordingly, everytime I call a @Given, @When..etc? @Before("@setup") public void setUp() { driver.manage().deleteAllCookies(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS); } Why is it necessary to assign a WebElement to the following wait , what

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

我怕爱的太早我们不能终老 提交于 2019-11-27 03:34:40
This question is sort of a tangent to Which browsers support <script async="async" />? . 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 is a common way to add a script to the DOM dynamically, which, IIRC from Steve Souders's book " Even Faster Web Sites ," prompts all modern browsers to load the script asynchronously (i.e., not blocking page rendering or downloading of subsequent assets). If

When using @media queries, does a phone load non-relevent queries and images?

大兔子大兔子 提交于 2019-11-26 16:21:28
问题 If I base my CSS on mobile styling, then use @media queries for gradually larger displays (tablets, desktops etc), will the mobile devices use the desktop styles? I believe that typically, mobile devices will load all images even if they don't apply to its own particular media size. Meaning it will load all images and hide ones not matching its query-based stylesheet. What I am trying to do is use one background for the larger version of the site: .splash { background: #1a1a1a url('/assets