2015年10月30日のブックマーク (2件)

  • サイトに適したリソース配置とasync/defer完全マスター – レンダリング優先のグッド・プラクティス | ゆっくりと…

    タイトル、少し変えました 😉 。 第1部「サイト高速化の「戦略」と「戦術」- GradeAのその先へ」では、YSlow や PageSpeed がアドバイスする Tips のうち、HTTP リクエストの削減を優先すべしという「戦略」の話をしました。 また css や js を束ねて結合し、HTTP リクエストを削減する時の「戦術」の話もしました。 今回は、「サイトの特性に適したリソースの配置を行う」ために、「束ねたリソースをドキュメント中にどう配置するのが適切か」を見い出したいと思います。またそのポイントとなるブラウザの基的な挙動についても言及します。 ブラウザごとの挙動が確かめられる、実験サイト contentloaded.com を立ち上げたので、以下、同サイトから幾つかの例を引きながら話を進めたいと思います。 リソース配置を決める戦術 基的な戦術 第1部 では、css や js

    サイトに適したリソース配置とasync/defer完全マスター – レンダリング優先のグッド・プラクティス | ゆっくりと…
    bislion
    bislion 2015/10/30
    “「ベスト・プラクティスと(スクリプトによる)レンダリング優先を両立させるリソース配置」、これがこの章のポイントです。 ”
  • Use Google Analytics 4  |  Chrome Extensions  |  Chrome for Developers

    This tutorial demonstrates how to track the usage of your extension using Google Analytics. You can find a working Google Analytics 4 sample on Github, where google-analytics.js includes all the Google Analytics related code. Requirements This tutorial assumes you are familiar with writing Chrome extensions. If you need information on how to write an extension, please read the Getting Started tuto

    bislion
    bislion 2015/10/30
    “The standard Google Analytics tracking code snippet fetches a file named ga.js from an SSL protected URL if the current page was loaded using the https:// protocol. Chrome extensions and applications may only use the SSL-protected version of ga.js. Loading ga.js over insecure HTTP is disallowed b