Selector Performance

オープン
#106 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, jquery
領域
documentation

調査の方向性

まず、issue に記載されている selector のパフォーマンスに関するトピックを確認します。これには、QSA、Sizzle、jQuery-only pseudo-selectors、quoted attribute selectors、old IE、およびアプリケーション全体のパフォーマンスが含まれます。完了の条件は、これらの推奨事項を初心者向けに統合した、最新かつ歴史的背景を踏まえた記事を作成することです。

索引モデルが issue の本文から書いたものです。

説明

Chapter: jquery-core Chapter: performance content meta-discuss

Much has been written and discussed over the years with respect to selector performance -- however, the best practises have also evolved over time as performance inside of jQuery has improved, and browsers have improved (especially the advent of QSA). A lot of the literature out there on this comes from different points in history, which leads newcomers to get a skewed view of priorities. We should explain some of this history and use this article as the clearing house on what is currently "best," things like

  • not being overly specific in selectors
  • avoiding jQuery-only psuedoselectors
  • including quotes in attribute selectors to get into QSA
  • Sizzle vs. QSA
  • thoughts on balancing performance in fast modern browsers in QSA with oldIE
  • where selector performance fits into the general app performance picture

(Hoping to get a lift here from @timmywil after the Sizzle rewrite for 1.8. @crowchick proposed some content for this in #54 that could certainly be fleshed out here to anyone's heart's content)

主要言語
JavaScript
スター
914
フォーク
472
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jquery/learn.jquery.com のほかの issue

jquery/learn.jquery.com の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。