yslow

High latency on my Wordpress Site

偶尔善良 提交于 2019-12-08 07:40:59
问题 I am trying to reduce the latency on site goldealers.co.uk The site appears to have a latency of anywhere between 950ms and 1500ms. I have checked: Processes RAM usage HTTP connections Ping Removing ALL plugins Removing plugins doesn't make the slightest bit of difference. The server is a VPS Cloud Server with dedicated 1.5ghz processor and 1GB RAM. My question: Is latency a server / programming problem? Do wordpress sites generally have a high latency? I have checked the latency on Forbes

Apache启用mod_deflate的gzip压缩

送分小仙女□ 提交于 2019-12-07 20:14:30
服务器带宽不够的情况下,可以使用apache启用mod_deflate的GZIP压缩网页传输。gzip原本是文件压缩格式,扩展名为.gz,HTTP协议用它来改进WEB应用程序性能,加快HTTP请求返回内容的下载速度,降低网络带宽占用。 LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so <IfModule mod_deflate.c> DeflateCompressionLevel 3 # 压缩程度的等级 AddOutputFilterByType DEFLATE text/htmltext/plaintext/csstext/xmltext/javascript#特定的MIME类型指定输出过滤器 AddOutputFilter DEFLATE css js#压缩后输出 SetOutputFilter DEFLATE # 插入过滤器,对所有输出启用压缩 # 不压缩图片等格式文件 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzipdont-vary SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no

Scripting YSlow and/or PageSpeed

假如想象 提交于 2019-12-06 16:49:26
问题 As I'm starting to do some front end engineering at work, I would like to properly quantify the speedup achieved. I would like to be able to use an average value of, say, 50 page load times measured by YSlow or Google Page Speed. Obviously, I don't want to hit reload 50 times and write down the value. Is there a FF plugin for that or will I have to write a Firebug extension myself? Or maybe there is a non-FF, command-line tool that does what I'm planning? 回答1: I recently did a talk about this

PHP function for getting file size and loading time for a page

别说谁变了你拦得住时间么 提交于 2019-12-06 16:46:19
Similar to my last question, I'd like to have a PHP function that can take a local path and tell me (a) how much the total file size is for HTML, CSS, JS and images, and (b) the total load time for this page. Like YSlow I think, but as a PHP function. Any thoughts? I looked around and was wondering can I use CURL for this? Even though I need to check paths that are on my own server? thanks! Update: After reading the comments, realizing I'm off base. Instead wondering is there a way programatically get a YSlow score for a page (or similar performance score). I assume it would need to hit a

前端学习路线

↘锁芯ラ 提交于 2019-12-06 06:49:21
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/u011394136/article/details/49101069 先附上一张网上广为流传的前端知识体系图:前端知识体系 从大图中我们总结出: 优秀的Web前端开发工程师 要在知识体系上既要有 广度 和 深度!应该具备快速学习能力。 前端开发工程师 不仅要掌握基本的Web前端开发技术,网站性能优化、SEO和服务器端的基础知识,而且要学会运用各种工具进行辅助开发以及理论层面的知识,包括代码的可维护性、组件的易用性、分层语义模板和浏览器分级支持等。 前端工程师至少都要满足四类客户的需求:   1、产品经理。这些是负责策划应用程序的一群人。他们会想出很多新鲜的、奇怪的、甚至是不可能实现的应用。一般来说,产品经理都追求丰富的功能。   2、UI设计师。这些人负责应用程序的视觉设计和交互模拟。他们关心的是用户对什么敏感、交互的一贯性以及整体的好用性。一般来说,UI设计师侯倾向于流畅靓丽、但并不容易实现的用户界面,而且他们经常不满前端工程师造成 1px 的误差。   3、项目经理。这些人负责实际地运行和维护应用程序。项目管理的主要关注点,无外乎正常运行时间、应用程序始终正常可用的时间、性能和截止日期

Yslow alternatives - Optimisations for small websites

泪湿孤枕 提交于 2019-12-06 04:23:00
问题 I am developing a small intranet based web application. I have YSlow installed and it suggests I do several things but they don't seem relevant for me. e.g I do not need a CDN. My application is slow so I want to reduce the bandwidth of requests. What rules of YSlow should I adhere to? Are there alternative tools for smaller sites? What is the check list I should apply before rolling out my application? I am using ASP.net. 回答1: Bandwidth on intranet sites shouldn't be an issue at all (unless

Expires and CDNS - YSlow Problems

丶灬走出姿态 提交于 2019-12-05 15:18:46
问题 Let me first mention that I have done some digging but can't seem to find a proper answer to what I'll looking for. I'm working on a site where I am using a few external resources: Google Analytics (//www.google-analytics.com/analytics.js) Latest jQuery version (http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js) Google Fonts (http://fonts.googleapis.com/css?family=Lato:400,300) Use a Content Delivery Network (CDN) I'm getting an "F" grade on "Use a Content Delivery Network (CDN)".

Remove Etag from favicon.ico

旧街凉风 提交于 2019-12-05 01:27:58
问题 using yslow on a project I am experiencing a "problem" I can not solve. Yslow keeps complaining: There is 1 component with misconfigured ETags http://www.domain.com/favicon.ico I have the following in my .htaccess file # Add Proper MIME-Type for Favicon AddType image/x-icon .ico # Enable Apache's mod_expires Module ExpiresActive On ExpiresByType image/x-icon "access plus 6 month" <ifModule mod_headers.c> Header unset ETag </ifModule> FileETag None Does anybody have an idea how to fix it? 回答1:

How to 'convert' variable of type instance such that the variable can be used to authenticate when making system calls

十年热恋 提交于 2019-12-04 21:51:03
I'm using https://code.google.com/p/python-ntlm/ for authenticating and then using a system call to get the response from YSlow. I am not quite sure on how to 'convert' the needed info to a variable that will provide me the response I desire. I tried other solutions...but here I am... user = 'domain\userName' password = "password" url = "http://someUrlHere.com" # User must be granted access in order for script to work... passman = urllib2.HTTPPasswordMgrWithDefaultRealm() passman.add_password(None, url, user, password) # create the NTLM authentication handler auth_NTLM = HTTPNtlmAuthHandler

Scripting YSlow and/or PageSpeed

柔情痞子 提交于 2019-12-04 20:59:15
As I'm starting to do some front end engineering at work, I would like to properly quantify the speedup achieved. I would like to be able to use an average value of, say, 50 page load times measured by YSlow or Google Page Speed. Obviously, I don't want to hit reload 50 times and write down the value. Is there a FF plugin for that or will I have to write a Firebug extension myself? Or maybe there is a non-FF, command-line tool that does what I'm planning? AutomatedTester I recently did a talk about this at Google Test Automation Conference in Zurich for this. Slides for it are here And I did a