page-load-time

Why is Firefox MUCH faster than Chrome when loading 'big' documents?

我只是一个虾纸丫 提交于 2021-01-27 05:49:50
问题 I'm trying to troubleshoot an issue with bad acceptance of custom html build-reports that require a very long time to load on googlechrome, whereas load time is much better on firefox. talking about ~5 sec. vs ~110 sec. (measured with firefox & googlechrome profiler) the file is about 10MB in size imo there is nothing 'special' about the html file. the reports are usually loaded with anchor suffix, so the browser should jump to the very end of the file (='summary section') when it's loaded. I

Why is Firefox MUCH faster than Chrome when loading 'big' documents?

♀尐吖头ヾ 提交于 2021-01-27 05:48:44
问题 I'm trying to troubleshoot an issue with bad acceptance of custom html build-reports that require a very long time to load on googlechrome, whereas load time is much better on firefox. talking about ~5 sec. vs ~110 sec. (measured with firefox & googlechrome profiler) the file is about 10MB in size imo there is nothing 'special' about the html file. the reports are usually loaded with anchor suffix, so the browser should jump to the very end of the file (='summary section') when it's loaded. I

How to prevent YouTube js calls from slowing down page load

别来无恙 提交于 2020-01-03 07:13:22
问题 I am using https://gtmetrix.com to diagnose issues with my page speed. The page in question has one embedded YouTube video and GTMetrix is saying that this video's JS calls are slowing down page load speed. This is the call being made: <iframe width="640" height="360" src="https://www.youtube.com/embed/PgcokT0AWHo" frameborder="0" allowfullscreen></iframe> 回答1: EDIT: as of October 2019, this is not working anymore (Thanks to @CpnCrunch for the update). For the cases where it's not impacting

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

自古美人都是妖i 提交于 2020-01-02 01:53:26
问题 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 plugins plus my own application script that is based on them. Their size all compressed = 224KB, ( I combine all the files in one file then I compress them at once using

Combine multiple .woff files into one

这一生的挚爱 提交于 2020-01-01 09:25:28
问题 On a website I manage we have several .woff files, one for each font. In the interest to save loading time I want to reduce the number of requests made. Is it possible to combine these woff files into one resource? 回答1: You can bundle the woff assets into your CSS with base64. Inside your @font-face declaration: url('data:application/x-font-woff;base64,myVeryLongBase64StringGoesHere...'); This may increase the asset's file size. In my experience this is usually by around 20% - roughly the

Loading Multiple CKEditors is Slow

爷,独闯天下 提交于 2019-12-30 11:38:09
问题 I have a lot of ckeditors on one web page for students to enter their data. I have a lot of ckeditors because each one is for one variable. Unfortunately, an input text field is too small for the data requested. The problem is that it takes too long for the web page to load and sometimes the web page hangs. I'm currently loading almost 425 editors. Here's an example of my code for three: <script type='text/javascript'>//<![CDATA[ $(window).load(function () { CKEDITOR.on('instanceReady',

Capybara increase max allowed page load time

半城伤御伤魂 提交于 2019-12-23 09:32:08
问题 I have a page that sometimes loads in over a minute. Assume this is the expected behavior and wont change. In these cases, I get Net::ReadTimeout . Note that this is after navigating to a page by clicking a button on the previous page, not an ajax request. Therefore Capybara.using_wait_time doesn't help. I have tried a number of radical things (some of which I knew wouldn't work) like: Setting page.driver.browser.manage.timeouts 's implicit_wait , script_timeout and page_load . Looping

Using Curl for load time testing PHP

泪湿孤枕 提交于 2019-12-23 04:47:07
问题 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); 回答1: If you load a HTML page with cURL, it's just going to load the page itself, not any linked resources like images. Particularly, it's not going to give you

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

耗尽温柔 提交于 2019-12-20 10:33:34
问题 Do any solutions currently 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 and Messages background-color: #000000; } Index.js --- $(".fooBar").click( function () { /* More Comments */ alert( "fooBar" ); }); Into This: Index.html --- <div class

Page Load Timeout - Selenium Webdriver using C#

谁说我不能喝 提交于 2019-12-18 18:22:35
问题 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