节省我们的页面加载时间的提示 [英] Tips to save up our page load time

查看:66
本文介绍了节省我们的页面加载时间的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题:什么是最好的方法来削减那些不必要的kbs并使页面加载更快。所有优化实践+编码实践(在js,php中)如果执行可以使您的页面更轻。

My Question:What are the best possible ways to shave up those unnecessary kbs and make page load Faster.What all optimization practices+coding practices(in js,php) if performed can make your page lighter.

为什么我问这个:我在jquery.js vs jquery.min.js上阅读这篇文章用法。我以为很多人在不知道它的含义的情况下使用它。我基本上是在Android和ios手机上制作广告单元。所以在我的领域节省每一个kb变得非常关键
我最近开始使用jquery.min而不是简单的javascript.But再次增加了整体kbs大小。大爸爸谷歌在他们的页面排名哲学中跟踪这个方面。所以这个问题变得更加重要的是在最热门的搜索中。我确实搜索了谷歌,但没有链接得到一些可靠的答案。

Why I asked this:I read this article on jquery.js vs jquery.min.js usage.I thought lot of people use it without knowing the meaning of it.I am basically in to making ad units on android and ios phones.So in my field saving up every single kb becomes very critical. I have recently started using jquery.min instead of plain javascript.But again that increases the overall kbs size.The big daddy google keeps track of this aspect in their page rank philosophy.So this question becomes even more important to be in top most searches.I did search google but no link came up with some solid answers.

我想知道应该怎样做才能让他们的网页更轻松在移动设备以及平板电脑和PC浏览器上,而不是使用任何js库的缩小版
在某些时候,每个javascript编码器都必须考虑这个问题。

I was wondering what should people do to make their web page lighter on mobile as well as tablets and pc browser other than using minified version of any js library. At some point of time every javascript coder must be thinking of this question.

推荐答案

你想要研究 WPO (网络性能优化)和/或 FEO (前端优化)。

You would want to research WPO (Web Performance Optimization) and/or FEO (Front-End Optimization).

它已经过时了但今天仍然适用: http://stevesouders.com/hpws /rules.php

It's old but it still holds true today: http://stevesouders.com/hpws/rules.php

Rule 1 - Make Fewer HTTP Requests
Rule 2 - Use a Content Delivery Network
Rule 3 - Add an Expires Header
Rule 4 - Gzip Components
Rule 5 - Put Stylesheets at the Top
Rule 6 - Put Scripts at the Bottom
Rule 7 - Avoid CSS Expressions
Rule 8 - Make JavaScript and CSS External
Rule 9 - Reduce DNS Lookups
Rule 10 - Minify JavaScript
Rule 11 - Avoid Redirects
Rule 12 - Remove Duplicate Scripts
Rule 13 - Configure ETags
Rule 14 - Make AJAX Cacheable

然后是雅虎的规则: http://developer.yahoo.com/performance/rules.html

当然谷歌的推荐: https://developers.google.com/speed/docs/best-practices/rules_intro

最后使用 http://webpagetest.org

这篇关于节省我们的页面加载时间的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆