c++ pop3_3PO

c++ pop3

c++ pop3

Say hello to the 3PO extension for YSlow. It checks your site for integration with popular 3rd parties, such as Facebook, Twitter widgets, Google Analytics and so on.

向YSlow的3PO扩展问好。 它检查您的网站是否与流行的第三方集成,例如Facebook,Twitter小部件,Google Analytics(分析)等。

3PO (3rd party optimization) extension currently has 5 checks: two of them generic to all 3rd parties and three specific to Facebook plugins. I'm looking forward to adding more checks and more specific to a particular provider's best practices.

3PO(第三方优化)扩展当前具有5个检查:其中两个对所有第三方通用,而三个特定于Facebook插件。 我期待增加更多的检查,并针对特定提供商的最佳做法进行更具体的检查。

The extension is currently available as a bookmarklet, but since YSlow is a platform available on many platforms, it can be built as a Firefox or Chrome extension, command line tool, etc.

该扩展程序目前可以作为书签使用,但是由于YSlow是许多平台上都可以使用的平台,因此可以将其构建为Firefox或Chrome扩展程序,命令行工具等。

安装 (Install)

Click this link to test, or drag to your bookmarks to install

单击此链接进行测试,或拖动到书签进行安装

慢速+ 3PO(YSlow +3PO)

And the code is available in my YSlow fork on Github.

代码可以在我在Github上的YSlow分支中找到

支票 (Checks)

Here's a the list of checks along with some explanation.

这是检查清单以及一些说明。

异步加载第三方JS (Load 3rd party JS asyncrhonously)

Category: Common

分类:普通

Use the JavaScript snippets that load the JS files asynchronously in order to speed up the user experience. Most providers offer you an asynchronous version of the script you're including on your page. If they don't, let them know and meanwhile do it yourself

使用JavaScript片段来异步加载JS文件,以加快用户体验。 大多数提供程序都会为您提供页面上包含的脚本的异步版本。 如果他们不这样做,请让他们知道,同时自己动手做

If you don't include the script asynchronously, you create a SPOF (Single Point of Failure) and your site effectively goes down when the 3rd party goes down. See for yourself.

如果不异步包含脚本,则创建一个SPOF(单点故障),并且当第3方关闭时,您的站点也会有效关闭。 你自己看。

仅加载一次第三方JS (Load the 3rd party JS only once)

Category: Common

分类:普通

Loading the 3rd party JS files more than once per page is not necessary and slows down the user experience. Sometimes people copy-paste snippets multiple times on the page, e.g. when you have one widget per blog post in a blog post listing. The script only needs to load once and serve multiple widgets.

每页不必多次加载第三方JS文件,这会减慢用户体验。 有时,人们在页面上多次复制粘贴摘要,例如,当您在博客文章列表中每个博客文章都具有一个小部件时。 该脚本仅需要加载一次并提供多个小部件。

定义XML名称空间 (Define XML namespace)

Category: Facebook

类别: Facebook

If you use tags like <fb:like> you need to define an XML namespace to make the plugin work in old IE versions. Same for any tag that has :

如果使用<fb:like>之类的标记,则需要定义XML名称空间,以使插件在旧IE版本中正常工作。 对于具有以下内容的任何标签都相同:

添加#fb-root元素 (Add an #fb-root element)

Category: Facebook

类别: Facebook

The Facebook JS SDK needs an element with id="fb-root". So add this to your page, before you include the Facebook JS SDK

Facebook JS SDK需要一个具有id="fb-root"的元素。 因此,在添加Facebook JS SDK之前,请将其添加到页面中

<div id="fb-root">

包含OG(开放图)元标记 (Include OG (Open Graph) meta tags)

Category: Facebook

类别: Facebook

Open graph tags let you better describe your content. To learn more, see the documentation. And run the tool to validate your page.

开放式图形标签可让您更好地描述您的内容。 要了解更多信息,请参阅文档。 并运行该工具来验证您的页面。

Tell your friends about this post on Facebook and Twitter

FacebookTwitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/3po/

c++ pop3