Selector Performance

Đang mở
#106 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, jquery
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng việc xem xét các chủ đề về hiệu năng của selector được liệt kê trong issue, bao gồm QSA, Sizzle, jQuery-only pseudo-selectors, quoted attribute selectors, old IE và hiệu năng ứng dụng nói chung. Công việc được xem là hoàn tất khi tạo ra một bài viết hiện hành, có cơ sở lịch sử, tổng hợp các khuyến nghị này cho những người mới đóng góp lần đầu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)

Ngôn ngữ chính
JavaScript
Star
914
Fork
472
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jquery/learn.jquery.com

Tất cả issue của jquery/learn.jquery.com

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.