Enviar pesquisa
Carregar
bsSelector (OKJSP)
•
Transferir como PPTX, PDF
•
4 gostaram
•
564 visualizações
Seung-Hyun PAEK
Seguir
2014년 5월 OKJSP 정기모임 bsSelector 발표자료
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 48
Baixar agora
Recomendados
bsSelector.js(OctoberSky.js)
bsSelector.js(OctoberSky.js)
Seung-Hyun PAEK
bsSelector (GDG DevFest 2014)
bsSelector (GDG DevFest 2014)
Seung-Hyun PAEK
개발경험프로젝트 YNCA팀 최종 데모 _발표자료
개발경험프로젝트 YNCA팀 최종 데모 _발표자료
우림 류
KPW2012::LT::spot
KPW2012::LT::spot
도성 최
Project bs oss
Project bs oss
Seung-Hyun PAEK
JavaScript defer & async
JavaScript defer & async
Seung-Hyun PAEK
2013 JCO tipJS.com JavaScript MVC framework
2013 JCO tipJS.com JavaScript MVC framework
Seung-Hyun PAEK
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Recomendados
bsSelector.js(OctoberSky.js)
bsSelector.js(OctoberSky.js)
Seung-Hyun PAEK
bsSelector (GDG DevFest 2014)
bsSelector (GDG DevFest 2014)
Seung-Hyun PAEK
개발경험프로젝트 YNCA팀 최종 데모 _발표자료
개발경험프로젝트 YNCA팀 최종 데모 _발표자료
우림 류
KPW2012::LT::spot
KPW2012::LT::spot
도성 최
Project bs oss
Project bs oss
Seung-Hyun PAEK
JavaScript defer & async
JavaScript defer & async
Seung-Hyun PAEK
2013 JCO tipJS.com JavaScript MVC framework
2013 JCO tipJS.com JavaScript MVC framework
Seung-Hyun PAEK
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Mais conteúdo relacionado
Destaque
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Destaque
(20)
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
bsSelector (OKJSP)
1.
bsSelector.js 개발기
2.
PAEK, Seung-Hyun - projectBS
core committer - SHOU Communications 근무 - 웹개발자(JavaScript 고수 아님요)
3.
projectBS
4.
projectBS bsJS
5.
bsJS var color =
bs.Dom('#domID') .S('border-radius', 5, '@width', 100, 'color', '#fff'); console.log(color) // "#fff“ var color = $('#domID').css( { 'borderRadius' : 5, ‘color’ : ‘#fff’ } ) .attr('width', 100) .css('color'); console.log(color) // "#fff"
6.
7.
'bsJS 에 독자적인 셀렉터를
갖고싶은 데..'
8.
‘승현이 니가 만들 면
되겠네~!!'
9.
10.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
11.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
12.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
13.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
14.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
15.
Selector process query의 tokenizer 요소
선택 요소 순환 요소 판정 결과 반환
16.
query = 'ul.toc
li.tocline2‘; tokens = ['ul', '.toc', ' ', 'li', ‘.tocline2‘]; if(tokens[i].charAt(0) == '#') document.getElementById(tokens[i].substr(1)); else if(tokens[i].charAt(0) == '.') document.getElementByClassName(tokens[i].substr(1)); else document.getElementsByTagName('*');
17.
- ‘CSS2 spec
은 기 본아냐?‘ - ㅇㅇ~
18.
- ‘CSS3 spec
도 하 는김에 하지?‘ - 으응..
19.
-‘CSS4 spec 이
새 로 나왔다던데?‘ - 뭐 (이 **야)?
20.
일단 완성
21.
Sizzle speed
22.
23.
jsPerf.com
24.
getElementById getElementsByTagName getElementsByClassName getElementsByName querySelectorAll
25.
26.
27.
ID TAG CLASS
NAME 2,096,567 1,876,875 1,841,273 1,575,123 17,090,351 8,920,145 8,285,463 8,031,034 19,384,745 16,661,973 17,559,678 19,073,485
28.
29.
ID TAG CLASS 124,963
126,480 106,504 1,091,549 222,199 210,918 2,020,367 321,119 339,747
30.
상황은 조금 나아 졌지만… 다음은???
31.
JavaScript는 인터프리터 언어
32.
인터프리터?
33.
34.
함수 호출을 최소화
35.
함수 호출을 최소화
한다
36.
함수 호출을 최소화
한다 function Non function 16,830 54,080 49,063 49,436 51,524 52,066
37.
LinkedList getElementsByTagName getElementsByClassName
38.
var els =
document.getElementsByTagName(‘div’); Console.log(els.length); // 1 var newEl = document.createElement(‘div’); document.body.appendChild(newEl); console.log(els.length); // 2
39.
반복의 제거
40.
div P[0] P[1] P[2] ‘p:last-child’
41.
element.childNodes; children.nodeType == 1; VS element.children
42.
이런 사실들과 알고리즘등을 바탕으로 재작성
43.
이런 사실들과 알고리즘등을 바탕으로 재작성
44.
Sizzle Mootools-slick bsSelector 함수개수
: 140 93 13 라인수 : 1,214 2,037 305 용량 : 60,335 37,935 13,485
45.
그 결과
46.
Chrome
47.
IE
48.
감사합니다. ProjectBS https://www.facebook.com/groups/bs5js/ github bsJS http://ligo.kr/i7 github bsSelector http://ligo.kr/o8
Notas do Editor
http://jsperf.com/jsconf-id-class-name-tag
http://jsperf.com/jsconf-id-class-name-tag/2
http://jsperf.com/jsconf-function-vs-non-function
Baixar agora