load-time

Load time: is it quicker to parse HTML with PHP's DOMDocument or with Regular Expressions?

你。 提交于 2019-12-07 15:02:19
问题 I'm pulling images from my Flickr account to my website, and I had used about nine lines of code to create a preg_match_all function that would pull the images. I've read several times that it is better to parse HTML through DOM. Personally, I've found it more complicated to parse HTML through DOM. I made up a similar function to pull the images with PHP's DOMDocument, and it's about 22 lines of code. It took awhile to create, and I'm not sure what the benefit was. The page loads at about the

What is causing IE 8 to pause on Site load?

爷,独闯天下 提交于 2019-12-06 09:37:16
Hey guys, I am trying to see if any of you have experience the same thing I am with Internet Explorer 8. When I go to load a site I built, I can see the whole page is loaded but it pauses for like 8 seconds before you can scroll or move. Once it is done pausing, it is fine to scroll around but if you click on a different page same thing happens again. This does not happen in any other browsers. So I tried a few things like completely disabling JS to see if something in there is causing it and it still does the same thing. So at this point, I am not sure if it is because of a certain advanced

Show load time on page

北城余情 提交于 2019-12-06 07:26:36
问题 I want to show the users how long the page takes to fully load in the footer of my website. How do I go about doing this? I assume there is a function that can be used for this? Not sure what language this type of feature is developed in? Any help would be appreciated, thanks. 回答1: You may try like this: $starttime = microtime(true); // Top of page // Code $endtime = microtime(true); // Bottom of page printf("Page loaded in %f seconds", $endtime - $starttime ); As commented by Ed Heal you

Do unused CSS styles affect load times

痴心易碎 提交于 2019-12-06 07:23:17
问题 I am wondering if unused CSS styles affect load times because I normally break my sections of my code using this format /*=================== Nav-Styles ===================*/ However, I also use coda to write my code. It has a code navigator, which detects ids followed by {} what I thought might help with my code organisation is to create this format of break /*========================================== #----NAV-STYLES-BEGIN {} /* Nav Styles */ ==========================================*/

Load time: is it quicker to parse HTML with PHP's DOMDocument or with Regular Expressions?

耗尽温柔 提交于 2019-12-05 20:56:05
I'm pulling images from my Flickr account to my website, and I had used about nine lines of code to create a preg_match_all function that would pull the images. I've read several times that it is better to parse HTML through DOM. Personally, I've found it more complicated to parse HTML through DOM. I made up a similar function to pull the images with PHP's DOMDocument, and it's about 22 lines of code. It took awhile to create, and I'm not sure what the benefit was. The page loads at about the same time for each code, so I'm not sure why I would use DOMDocument. Does DOMDocument work faster

Do unused CSS styles affect load times

不羁岁月 提交于 2019-12-04 13:55:29
I am wondering if unused CSS styles affect load times because I normally break my sections of my code using this format /*=================== Nav-Styles ===================*/ However, I also use coda to write my code. It has a code navigator, which detects ids followed by {} what I thought might help with my code organisation is to create this format of break /*========================================== #----NAV-STYLES-BEGIN {} /* Nav Styles */ ==========================================*/ This will mean my section breaks will them appear in the code navigator and can be jumped to quickly.

Fancybox causing slow load times in IE?

我是研究僧i 提交于 2019-11-30 18:45:13
问题 I'm using Fancybox v.1.3.4 to display videos in an iframe on this page. The Fancybox and the videos display fine, but the problem is that, since adding the code, I'm getting a huge pause when loading up the site in IE7/8, similar to this issue—the page loads, and then the UI freezes for a good 4-5 seconds, preventing me from clicking on links, scrolling, or anything else. Here's what I have linked at the top of the page, in the <head> . The jQuery UI pack (incl. UI 1.8.11, UI Widget, UI Mouse

How to decrease the page load time in ASP.NET application?

拟墨画扇 提交于 2019-11-30 00:54:58
How to decrease the page load time in ASP.NET application? What should be the precautions and specially when we are interacting with databases e.g. wise use of viewstate Set in web.config when deploying the app etc Some of the key "take-aways" from TechEd 2010 North America: Caching is key to performance, consider your caching strategy very carefully. Disable viewstate if possible. Set <compilation debug=”false"> in web.config when deploying the app. Consider CDN's or subdomains for graphics and other static content. Place javascript at the bottom of the page, CSS at the top. Consider CSS

why could my website be 'loading' twice?

删除回忆录丶 提交于 2019-11-29 22:39:36
问题 or at least that's what pingdom says, and i think it's a pretty reliable service, Notes: APACHE: php & mysql No iframes htaccess: #Gzip <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x- javascript application/javascript </ifmodule> #End Gzip # 480 weeks <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> # 1 weeks <FilesMatch "\.(js)$"> Header set Cache

How to decrease the page load time in ASP.NET application?

心已入冬 提交于 2019-11-28 21:39:37
问题 How to decrease the page load time in ASP.NET application? What should be the precautions and specially when we are interacting with databases e.g. wise use of viewstate Set in web.config when deploying the app etc 回答1: Some of the key "take-aways" from TechEd 2010 North America: Caching is key to performance, consider your caching strategy very carefully. Disable viewstate if possible. Set <compilation debug=”false"> in web.config when deploying the app. Consider CDN's or subdomains for