はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    ノーベル賞

『Home — Philip Walton』

  • 人気
  • 新着
  • すべて
  • The State of ES5 on the Web — Philip Walton

    11 users

    philipwalton.com

    In 2017, I wrote an article showing web developers how they could deploy ES6+ code (a.k.a. ES2015) to production, without needing to transpile it to ES5. This technique was liberating for website developers who wanted the freedom to write modern code without having to worry about transpiler or polyfill bloat. Unfortunately, while many website developers were able to use this technique, most JavaSc

    • テクノロジー
    • 2024/09/10 00:21
    • JavaScript
    • article
    • My Challenge to the Web Performance Community — Philip Walton

      4 users

      philipwalton.com

      I have noticed a trend in recent years—a trend that I’ve admittedly been part of myself—where performance-minded developers will rebuild a site and then post a screenshot of their Lighthouse score on social media to show off how fast it is. What might come as a surprise to many of the people reading this post is that I kinda want this trend to stop—or at least, I want it to change. Now, let me be

      • 暮らし
      • 2021/10/06 23:36
      • Smaller HTML Payloads with Service Workers — Philip Walton

        5 users

        philipwalton.com

        Many developers know that you can use service workers to cache web pages (and their sub-resources) in order to serve those pages to users when they’re offline. And while this is true, it’s far from the only thing that service workers can do to improve the performance and reliability of a website. A lesser known capability of service workers is that you can programmatically generate your responses—

        • テクノロジー
        • 2020/01/10 11:40
        • performance
        • Pocket
        • Using Native JavaScript Modules in Production Today — Philip Walton

          16 users

          philipwalton.com

          Two years ago I wrote about a technique—now commonly referred to as the module/nomodule pattern—that allows you to write ES2015+ JavaScript and then use bundlers and transpilers to generate two versions of your codebase, one with modern syntax (loaded via <script type="module">) and one with ES5 syntax (loaded via <script nomodule>). The technique allows you to ship significantly less code to modu

          • テクノロジー
          • 2019/08/23 11:10
          • module
          • javascript
          • article
          • あとで読む
          • web
          • *あとで読む
          • Idle Until Urgent — Philip Walton

            16 users

            philipwalton.com

            A few weeks ago I was looking at some of the performance metrics for my site. Specifically, I wanted to see how I was doing on our newest metric, first input delay (FID). My site is just a blog (and doesn’t run much JavaScript), so I expected to see pretty good results. Input delay that’s less than 100 milliseconds is typically perceived as instant by users, so the performance goal we recommend (a

            • テクノロジー
            • 2018/09/20 16:59
            • performance
            • javascript
            • article
            • あとで読む
            • Responsive Components: a Solution to the Container Queries Problem — Philip Walton

              7 users

              philipwalton.com

              Now all we have to do is ensure our container elements always have the right breakpoint classes on them, so the correct component selectors will match. Observing container resizesFor most of web development history, it’s been possible to observe changes to the window, but it’s been hard or impossible (at least in a performant way) to observe size changes to individual DOM elements. This changed wh

              • テクノロジー
              • 2018/02/27 18:44
              • container queries
              • component
              • responsive
              • CSS
              • JavaScript
              • browser
              • Pocket
              • Why Web Developers Need to Care about Interactivity — Philip Walton

                4 users

                philipwalton.com

                Anyone who’s browsed the web on their phone has, at one point or another, experienced this situation: You open a web page and click on something, but nothing happens. You click on it again—still nothing happens. You click on something else—nope, nothing. This is bad enough on its own, but it often doesn’t end there. Here’s what usually happens next: You start clicking everywhere just to get *some*

                • 学び
                • 2017/12/20 03:37
                • Deploying ES2015+ Code in Production Today — Philip Walton

                  18 users

                  philipwalton.com

                  Most web developers I talk to these days love writing JavaScript with all the newest language features—async/await, classes, arrow functions, etc. However, despite the fact that all modern browsers can run ES2015+ code and natively support the features I just mentioned, most developers still transpile their code to ES5 and bundle it with polyfills to accommodate the small percentage of users still

                  • テクノロジー
                  • 2017/09/14 10:13
                  • webpack
                  • module
                  • JavaScript
                  • ECMAScript
                  • browser
                  • あとで読む
                  • How We Track Pageviews Is All Wrong — Philip Walton

                    7 users

                    philipwalton.com

                    All analytics tools I know of track pageviews in a way that—to put it bluntly—simply doesn’t work for a growing number of websites today and is completely incompatible with the direction the web is heading. For the most part, these tools assume (by default) that each pageview corresponds to a full page load, and that each page load runs some analytics tracking code, and sends a pageview to a back-

                    • テクノロジー
                    • 2017/04/12 08:54
                    • analytics
                    • javascript
                    • web
                    • あとで読む
                    • The Google Analytics Setup I Use on Every Site I Build — Philip Walton

                      12 users

                      philipwalton.com

                      Google Analytics is a powerful yet quite complicated tool. And unfortunately, the truth is most people who use it don’t reap its full benefits. There’s a lot of excellent and free content out there that explains how to use Google Analytics, but most of it is rather narrowly focused on use cases that primarily apply to marketers and advertisers; very little is geared toward web developers who simpl

                      • テクノロジー
                      • 2017/02/09 09:10
                      • Google Analytics
                      • analytics
                      • google
                      • web
                      • The Dark Side of Polyfilling CSS — Philip Walton

                        5 users

                        philipwalton.com

                        Earlier this year I wrote an article for Smashing Magazine about Houdini, and I called it the “most exciting development in CSS you’ve never heard of”. In the article I argue that Houdini APIs will (among other things) make it possible to polyfill CSS features in a way that simply cannot be done today. While the article was generally quite well-received, I did notice the same question popping up o

                        • テクノロジー
                        • 2016/12/23 11:30
                        • Pocket
                        • Loading Polyfills Only When Needed — Philip Walton

                          16 users

                          philipwalton.com

                          New JavaScript and HTML features are being introduced all the time that make our lives as developers easier. In many cases, these new features are so helpful we choose to use them on production websites before they’re fully implemented in all browsers. To not break the experience for users on older browsers, we of course include polyfills for any not-fully-supported features. The problem with this

                          • テクノロジー
                          • 2016/09/28 16:40
                          • JavaScript
                          • polyfill
                          • library
                          • 資料
                          • Programming
                          • あとで読む
                          • *あとで読む
                          • Untangling Deeply-Nested Promise Chains — Philip Walton

                            6 users

                            philipwalton.com

                            If you’ve been writing JavaScript for a while, you’ve probably heard terms like callback hell or the pyramid of doom. When promises were added to JavaScript a few years ago, I remember reading a lot of blog posts claiming that these problems would be solved; unfortunately, that was a little too optimistic. With more and more web APIs becoming promise-based, we’ve proven that even promises don’t pr

                            • テクノロジー
                            • 2016/08/19 13:19
                            • Pocket
                            • JavaScript
                            • Learning How to Set Up Automated, Cross-browser JavaScript Unit Testing — Philip Walton

                              3 users

                              philipwalton.com

                              • テクノロジー
                              • 2016/07/12 12:19
                              • Why I'm Excited About Native CSS Variables — Philip Walton

                                16 users

                                philipwalton.com

                                A few weeks ago CSS variables—more accurately known as CSS Custom Properties—shipped in Chrome Canary behind the Experimental Web Platform Features flag.[1] When Chrome engineer Addy Osmani first tweeted about the release, he was met with a surprising amount of negativity, hostility, and skepticism. At least, it was surprising to me, given how excited I am about this feature. After a quick scan of

                                • テクノロジー
                                • 2015/12/07 08:42
                                • css
                                • variables
                                • Do We Actually Need Specificity In CSS? — Philip Walton

                                  5 users

                                  philipwalton.com

                                  Okay, before I start, I want to get one thing out of the way upfront. This article is not a rant about how much I hate specificity. If you want to read an article like that, I’m sure you can find dozens elsewhere online. What I want to do is pose an actual, honest question to the web development community and hopefully get people thinking. To restate the question in a way that gets more at the hea

                                  • テクノロジー
                                  • 2015/11/02 09:50
                                  • css
                                  • How to Become a Great Front-End Engineer — Philip Walton

                                    10 users

                                    philipwalton.com

                                    I recently received an email from a reader of my blog that, for whatever reason, really got me thinking. Here’s what it said: Hi Philip, is it okay to ask how you become a great front-end engineer? Any advice? I have to admit, I was surprised to even be asked this question since I’ve never really thought of myself as a “great” front-end engineer. In fact, the first few years I worked in this indus

                                    • テクノロジー
                                    • 2015/08/06 18:55
                                    • frontend
                                    • ***
                                    • dev
                                    • english
                                    • Side Effects in CSS — Philip Walton

                                      13 users

                                      philipwalton.com

                                      It feels like every few days I read about some shiny new way people are writing CSS. Many of these “new” ways are not actually new, they’re variations on one or more well-known methodologies, but with a few changes sprinkled on top. Now, I’m certainly not against change, nor trying to make improvements on current best practices, but if you’re going to make changes, they should be for the better. F

                                      • 学び
                                      • 2015/03/04 15:39
                                      • css
                                      • bem
                                      • 設計
                                      • english
                                      • design
                                      • あとで読む
                                      • Normalizing Cross-browser Flexbox Bugs — Philip Walton

                                        12 users

                                        philipwalton.com

                                        Update: as a follow-up to this article, I’ve created the Github repo Flexbugs: a community curated list of cross-browser flexbox issues and their known workarounds. The goal is if you’re building a website using flexbox, and something isn’t working as you’d expect, you can find the solution there. Way back in September of 2013, while testing my Solved by Flexbox project, I discovered a bug in Inte

                                        • テクノロジー
                                        • 2015/01/07 08:58
                                        • flexbox
                                        • css
                                        • Tips
                                        • Implementing Private and Protected Members in JavaScript — Philip Walton

                                          3 users

                                          philipwalton.com

                                          Privacy has been a complicated issue throughout JavaScript’s history. While it’s always been possible to meet even the most stringent privacy needs (the myriad of compile-to-js languages proves this), the extraneous ceremony required to really do it right is often too much of a turn-off for most developers — especially to those coming from other languages where privacy is built in. In JavaScript w

                                          • テクノロジー
                                          • 2014/04/13 05:02
                                          • JavaScript
                                          • Introducing HTML Inspector — Philip Walton

                                            4 users

                                            philipwalton.com

                                            HTML Inspector is a code quality tool to help you and your team write better markup. It’s written in JavaScript and runs in the browser, so testing your HTML has never been easier. Like JSHint and CSSLint, HTML Inspector is completely customizable, so you can use what you like and ignore what you don’t. It’s also extensible and pluggable, making it possible to write your own rules that enforce you

                                            • テクノロジー
                                            • 2013/10/23 21:05
                                            • tools
                                            • development
                                            • *あとで
                                            • Decoupling Your HTML, CSS, and JavaScript — Philip Walton

                                              5 users

                                              philipwalton.com

                                              Any non-trivial site or application on the Web today will contain a large amount of HTML, CSS, and JavaScript. As the use of the Internet evolves and our dependence on it increases, having a plan for organizing and maintaining your front-end code is an absolute must. In today’s large Web companies, an increasing number of people are touching an increasingly large percentage of the front-end code.

                                              • テクノロジー
                                              • 2013/08/20 18:02
                                              • javascript
                                              • html
                                              • css
                                              • *web
                                              • development
                                              • あとで読む
                                              • Why I Test Private Functions In JavaScript — Philip Walton

                                                3 users

                                                philipwalton.com

                                                Last week I published an article on this blog entitled How to Unit Test Private Functions in JavaScript. The article was well received and even mentioned in a few popular newsletters (most notably JavaScript Weekly). Still, a decent amount of the feedback I received in the comments and on Twitter strongly disagreed with my approach. The most common criticism was: unit testing private functions is

                                                • テクノロジー
                                                • 2013/07/18 17:55
                                                • JavaScript
                                                • How to Unit Test Private Functions in JavaScript — Philip Walton

                                                  16 users

                                                  philipwalton.com

                                                  Update: A lot of readers have commented or tweeted that I shouldn’t be unit testing private functions in the first place. Admittedly, this article is a little light on the why and mainly focuses on the how. To explain some of my rationale, I wrote a follow-up article: Why I Test Private Functions In JavaScript JavaScript’s closures provide an excellent way to make variables and functions private,

                                                  • テクノロジー
                                                  • 2013/07/16 14:24
                                                  • javascript
                                                  • test
                                                  • unittest
                                                  • js
                                                  • tech
                                                  • development
                                                  • programming
                                                  • CSS Architecture — Philip Walton

                                                    25 users

                                                    philipwalton.com

                                                    To many Web developers, being good at CSS means you can take a visual mock-up and replicate it perfectly in code. You don’t use tables, and you pride yourself on using as few images as possible. If you’re really good, you use the latest and greatest techniques like media queries, transitions and transforms. While all this is certainly true of good CSS developers, there’s an entirely separate side

                                                    • テクノロジー
                                                    • 2013/06/08 13:28
                                                    • css
                                                    • architecture
                                                    • ***
                                                    • html
                                                    • tips
                                                    • web
                                                    • The Future of OOCSS: A Proposal — Philip Walton

                                                      8 users

                                                      philipwalton.com

                                                      In CSS we often code the same visual components over and over again — even within the same project. It’s embarrassing how many separate times in my career I’ve coded a two-column layout, or tabbed navigation, or a dropdown menu, or a popup (and the list goes on). To deal with this problem Nicole Sullivan created the Object Oriented CSS (OOCSS) project. She suggests that instead of defining entire

                                                      • テクノロジー
                                                      • 2013/01/25 10:32
                                                      • OOCSS
                                                      • sass
                                                      • CSS
                                                      • *あとで
                                                      • What No One Told You About Z-Index — Philip Walton

                                                        14 users

                                                        philipwalton.com

                                                        The problem with z-index is that very few people understand how it really works. It’s not complicated, but it if you’ve never taken the time to read its specification, there are almost certainly crucial aspects that you’re completely unaware of. Don’t believe me? Well, see if you can solve this problem: The ProblemIn the following HTML you have three <div> elements, and each <div> contains a singl

                                                        • テクノロジー
                                                        • 2013/01/16 06:00
                                                        • z-index
                                                        • css
                                                        • css3
                                                        • ***
                                                        • browser
                                                        • tips

                                                        このページはまだ
                                                        ブックマークされていません

                                                        このページを最初にブックマークしてみませんか?

                                                        『Home — Philip Walton』の新着エントリーを見る

                                                        キーボードショートカット一覧

                                                        j次のブックマーク

                                                        k前のブックマーク

                                                        lあとで読む

                                                        eコメント一覧を開く

                                                        oページを開く

                                                        はてなブックマーク

                                                        • 総合
                                                        • 一般
                                                        • 世の中
                                                        • 政治と経済
                                                        • 暮らし
                                                        • 学び
                                                        • テクノロジー
                                                        • エンタメ
                                                        • アニメとゲーム
                                                        • おもしろ
                                                        • アプリ・拡張機能
                                                        • 開発ブログ
                                                        • ヘルプ
                                                        • お問い合わせ
                                                        • ガイドライン
                                                        • 利用規約
                                                        • プライバシーポリシー
                                                        • 利用者情報の外部送信について
                                                        • ガイドライン
                                                        • 利用規約
                                                        • プライバシーポリシー
                                                        • 利用者情報の外部送信について

                                                        公式Twitter

                                                        • 公式アカウント
                                                        • ホットエントリー

                                                        はてなのサービス

                                                        • はてなブログ
                                                        • はてなブログPro
                                                        • 人力検索はてな
                                                        • はてなブログ タグ
                                                        • はてなニュース
                                                        • ソレドコ
                                                        • App Storeからダウンロード
                                                        • Google Playで手に入れよう
                                                        Copyright © 2005-2025 Hatena. All Rights Reserved.
                                                        設定を変更しましたx