タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

articleとJavaScriptとChromeに関するefclのブックマーク (29)

  • Page Lifecycle API  |  Web Platform  |  Chrome for Developers

    Modern browsers today will sometimes suspend pages or discard them entirely when system resources are constrained. In the future, browsers want to do this proactively, so they consume less power and memory. The Page Lifecycle API provides lifecycle hooks so your pages can safely handle these browser interventions without affecting the user experience. Take a look at the API to see whether you shou

    efcl
    efcl 2018/07/25
    Page Lifecycle APIについての解説。 ウェブページにライフサイクルの概念を導入する。`visibilitychange`など既存のイベントや新しく追加された`freeze`、`resume`などイベントの紹介、ライフサイクルにおけるStateについてを解説して
  • BigInt: arbitrary-precision integers in JavaScript · V8

    Show navigation BigInts are a new numeric primitive in JavaScript that can represent integers with arbitrary precision. With BigInts, you can safely store and operate on large integers even beyond the safe integer limit for Numbers. This article walks through some use cases and explains the new functionality in Chrome 67 by comparing BigInts to Numbers in JavaScript. Use cases #Arbitrary-precision

    efcl
    efcl 2018/05/02
    Chrome 67で実装された`BitInt`についての解説。 `Number`とは異なり任意精度の整数を扱える新しいプリミティブ値。 リテラル表現、typeofの結果、演算子での動き、BigIntとNumberでの演算は`TypeError`になる点などについて
  • JavaScript のスレッド並列実行環境

    これは Chromium Browser アドベントカレンダーの十日目の記事です。記事では Chromium における JavaScript のスレッド並列実行環境について仕様・実装・API の面から包括的に紹介します。ブラウザの内部実装に興味がある人を対象に、各機能の使い方ではなく実行モデルに焦点を当てて説明しているため、難易度は高いです。使い方を知りたい人は MDN などの記事を読んでください。この記事をきっかけに実装解読に挑戦してみる人が一人でも増えると幸いです。 記事を書くにあたり、yuki3 さんに多くのコメントをいただき、議論に付き合っていただきました。ありがとうございました。なお、文責はすべて私 (nhiroki) にあります。誤りや補足、質問などは気軽に GitHub Issue もしくは Twitter へお寄せください。 更新履歴 2018/01/15 Layout

    JavaScript のスレッド並列実行環境
    efcl
    efcl 2017/12/29
    JavaScriptにおけるスレッド関係の機構について。 タスクキュー、Web Workerのモデル、スレッド間のメッセージング、データのコピーと移譲(Transferable)、SharedArrayBuffer、Agentの共有メモリモデル。 Worklet/Tasklet、Web Locks、Thread APIに
  • ES6 Modules のエラー処理を決定的(deterministic)にした話

    このブラウザ バージョンのサポートは終了しました。サポートされているブラウザにアップグレードしてください。

    ES6 Modules のエラー処理を決定的(deterministic)にした話
    efcl
    efcl 2017/12/25
    ES Modules(仕様)のエラーがネットワークに依存したものとなっていて、毎回異なるエラーになる問題があった。 エラーが毎回同じ結果となるように、仕様をどのように修正していったかについて。
  • Preload modules  |  Articles  |  web.dev

    Published: November 23, 2024 Module-based development offers some real advantages in terms of cacheability, helping you reduce the number of bytes you need to ship to your users. The finer granularity of the code also helps with the loading story, by letting you prioritize the critical code in your application. However, module dependencies introduce a loading problem, in that the browser needs to

    efcl
    efcl 2017/12/25
    `<link rel="modulepreload">`について。 `<link rel="preload">`との違い、モジュールの依存関係はフラットにすべてのファイルを定義するべきかについて
  • PuppeteerでWebページからメインコンテンツっぽいところを抽出してみる - Qiita

    最近、Webページからざっくりメインコンテンツっぽいものを探し出すプログラムを作成しましたので得られた知見についてまとめてみます。文などの情報を利用せずに汎用的にメインコンテンツを探したかったので、Elementの位置、幅、高さ(以下rect)等の視覚的な情報を使用して抽出してみました。具体的には puppeteerでページをスクレイピングして各Elementの情報をまとめたツリー構造を作る Elementにスコアを付けて尤もらしいものをメインコンテンツとする というステップで抽出します。 メインコンテンツを抽出する完全なコードについてはgistのサンプルを参照してください。 ページのスクレイピング puppeteerを使ってページをスクレイピングします。最初にdomツリーを探索して必要な情報をjsonとて抽出します。視覚的な情最新のとして各Elementごとにrectの情報を取得します

    PuppeteerでWebページからメインコンテンツっぽいところを抽出してみる - Qiita
    efcl
    efcl 2017/12/08
    PuppeteerでスクレイピングしたDOM要素のスコアリングして、メインコンテンツを抽出する仕組みについて
  • Dynamic import() · V8

    Dynamic import() introduces a new function-like form of import that unlocks new capabilities compared to static import. This article compares the two and gives an overview of what’s new. Static import (recap) #Chrome 61 shipped with support for the ES2015 import statement within modules. Consider the following module, located at ./utils.mjs: // Default export export default () => { console.log('Hi

    efcl
    efcl 2017/11/22
    Chrom 63から利用できるDynamic `import()`についての解説
  • Browser automation revisited - meet Puppeteer | Gergely Nemeth

    Browser automation revisited - meet Puppeteer I've always been more interested in back-end technologies, scalability, and security. But during the past years, I had my fair share of working on the frontend as well. These stories included testing the UI with functional tests, mostly using Selenium. When it came to that, the team usually went with Nightwatch - if you are interested in how to get sta

    Browser automation revisited - meet Puppeteer | Gergely Nemeth
    efcl
    efcl 2017/11/14
    Puppeteerを使ったデバッグの自動化についての記事。 コンソールログの取得、スクリーンショット、プロファイルの記録、HTTPリクエストの制御などを行う方法についてを紹介している
  • Learn How To Debug JavaScript with Chrome DevTools

    As a new developer, finding and fixing bugs can be difficult. You may be tempted to randomly use console.log() in an attempt to get your code working correctly. Not Anymore! This article is all about debugging the correct way! You’ll learn how to use the Chrome Developer Tools to set up breakpoints and step through your code. This workflow is often a much more efficient way to find and fix bugs in

    Learn How To Debug JavaScript with Chrome DevTools
    efcl
    efcl 2017/09/11
    Chromeの開発者ツールを使ったデバッグ方法について。 デバッガーでのブレークポイントを貼ったデバッグ方法についてをステップバイステップで解説している。