Soumettre la recherche
Mettre en ligne
倒计时优化点滴
•
4 j'aime
•
656 vues
J
j5726
Suivre
懒懒keynote, http://www.oncoding.cn/2011/javascript-flyweight/
Lire moins
Lire la suite
Technologie
Affichage du diaporama
Signaler
Partager
Affichage du diaporama
Signaler
Partager
1 sur 41
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
非同期javascriptの過去と未来
非同期javascriptの過去と未来
Taketoshi 青野健利
jsDay 2016 recap
jsDay 2016 recap
Giorgio Cefaro
Boulder Ruby Statsd
Boulder Ruby Statsd
Mark Morris
clara-rules
clara-rules
Ikuru Kanuma
Engineering JavaScript
Engineering JavaScript
Jim Purbrick
人間では判定できない101すくみじゃんけんをコンピュータに判定させたい for Keras.js
人間では判定できない101すくみじゃんけんをコンピュータに判定させたい for Keras.js
KatsuyaENDOH
Arduino & node.js
Arduino & node.js
Steven Beeckman
Practical project automation
Practical project automation
Reinout van Rees
Recommandé
非同期javascriptの過去と未来
非同期javascriptの過去と未来
Taketoshi 青野健利
jsDay 2016 recap
jsDay 2016 recap
Giorgio Cefaro
Boulder Ruby Statsd
Boulder Ruby Statsd
Mark Morris
clara-rules
clara-rules
Ikuru Kanuma
Engineering JavaScript
Engineering JavaScript
Jim Purbrick
人間では判定できない101すくみじゃんけんをコンピュータに判定させたい for Keras.js
人間では判定できない101すくみじゃんけんをコンピュータに判定させたい for Keras.js
KatsuyaENDOH
Arduino & node.js
Arduino & node.js
Steven Beeckman
Practical project automation
Practical project automation
Reinout van Rees
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Jia Li
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Alexey Lesovsky
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
Ikuru Kanuma
Why Redux-Observable?
Why Redux-Observable?
Anna Su
Websocket on Rails
Websocket on Rails
Jeroen Rosenberg
Lesson 10
Lesson 10
Alex Honcharuk
Service worker: discover the next web game changer
Service worker: discover the next web game changer
Sandro Paganotti
Potential gotchas in making a backbone app
Potential gotchas in making a backbone app
Vignesh Nandha Kumar
Star bed 2018.07.19
Star bed 2018.07.19
Ruo Ando
Test Automation Using Googletest
Test Automation Using Googletest
Mohammed_Publications
Simple Tips and Tricks with Ansible
Simple Tips and Tricks with Ansible
Keith Resar
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
quirkey
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
Puppet
Introduction tomongodb
Introduction tomongodb
Lee Theobald
Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...
Odoo
Puppet Data Mining
Puppet Data Mining
Gareth Rushgrove
OpenERP Benchmark : How to test performance and robustness against your volum...
OpenERP Benchmark : How to test performance and robustness against your volum...
Odoo
Spark Jobserver
Spark Jobserver
Yegor Andreenko
Stop Ember Time
Stop Ember Time
cjwoodward
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Tokuhiro Matsuno
Charm Alarm: Team WiSci in the 2013 Technovation Competition
Charm Alarm: Team WiSci in the 2013 Technovation Competition
wisciwomen
Timer & Interrupt Atmega16
Timer & Interrupt Atmega16
Ramadan Ramadan
Contenu connexe
Tendances
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Jia Li
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Alexey Lesovsky
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
Ikuru Kanuma
Why Redux-Observable?
Why Redux-Observable?
Anna Su
Websocket on Rails
Websocket on Rails
Jeroen Rosenberg
Lesson 10
Lesson 10
Alex Honcharuk
Service worker: discover the next web game changer
Service worker: discover the next web game changer
Sandro Paganotti
Potential gotchas in making a backbone app
Potential gotchas in making a backbone app
Vignesh Nandha Kumar
Star bed 2018.07.19
Star bed 2018.07.19
Ruo Ando
Test Automation Using Googletest
Test Automation Using Googletest
Mohammed_Publications
Simple Tips and Tricks with Ansible
Simple Tips and Tricks with Ansible
Keith Resar
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
quirkey
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
Puppet
Introduction tomongodb
Introduction tomongodb
Lee Theobald
Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...
Odoo
Puppet Data Mining
Puppet Data Mining
Gareth Rushgrove
OpenERP Benchmark : How to test performance and robustness against your volum...
OpenERP Benchmark : How to test performance and robustness against your volum...
Odoo
Spark Jobserver
Spark Jobserver
Yegor Andreenko
Stop Ember Time
Stop Ember Time
cjwoodward
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Tokuhiro Matsuno
Tendances
(20)
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
Why Redux-Observable?
Why Redux-Observable?
Websocket on Rails
Websocket on Rails
Lesson 10
Lesson 10
Service worker: discover the next web game changer
Service worker: discover the next web game changer
Potential gotchas in making a backbone app
Potential gotchas in making a backbone app
Star bed 2018.07.19
Star bed 2018.07.19
Test Automation Using Googletest
Test Automation Using Googletest
Simple Tips and Tricks with Ansible
Simple Tips and Tricks with Ansible
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
How to Measure Everything: A Million Metrics Per Second with Minimal Develope...
Introduction tomongodb
Introduction tomongodb
Tips on how to improve the performance of your custom modules for high volume...
Tips on how to improve the performance of your custom modules for high volume...
Puppet Data Mining
Puppet Data Mining
OpenERP Benchmark : How to test performance and robustness against your volum...
OpenERP Benchmark : How to test performance and robustness against your volum...
Spark Jobserver
Spark Jobserver
Stop Ember Time
Stop Ember Time
Devel::NYTProf::Apache
Devel::NYTProf::Apache
En vedette
Charm Alarm: Team WiSci in the 2013 Technovation Competition
Charm Alarm: Team WiSci in the 2013 Technovation Competition
wisciwomen
Timer & Interrupt Atmega16
Timer & Interrupt Atmega16
Ramadan Ramadan
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)
TechLeap
Temperature Sensor
Temperature Sensor
EnricVentosa
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
Subhashini Sundaram
Anti drowsy alarm for drivers
Anti drowsy alarm for drivers
Duc Nguyen Van
En vedette
(6)
Charm Alarm: Team WiSci in the 2013 Technovation Competition
Charm Alarm: Team WiSci in the 2013 Technovation Competition
Timer & Interrupt Atmega16
Timer & Interrupt Atmega16
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)
Temperature Sensor
Temperature Sensor
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
Anti drowsy alarm for drivers
Anti drowsy alarm for drivers
Similaire à 倒计时优化点滴
I os 06
I os 06
信嘉 陳
Building resilient applications
Building resilient applications
Nuno Caneco
Java ME API Next
Java ME API Next
Otávio Santana
Performance patterns
Performance patterns
Stoyan Stefanov
Why you should be using structured logs
Why you should be using structured logs
Stefan Krawczyk
Timers in Unix/Linux
Timers in Unix/Linux
geeksrik
Advanced patterns in asynchronous programming
Advanced patterns in asynchronous programming
Michael Arenzon
Test driven development
Test driven development
christoforosnalmpantis
DevoxxUK: Optimizating Application Performance on Kubernetes
DevoxxUK: Optimizating Application Performance on Kubernetes
Dinakar Guniguntala
3 things you must know to think reactive - Geecon Kraków 2015
3 things you must know to think reactive - Geecon Kraków 2015
Manuel Bernhardt
Introduction httpClient on Java11 / Java11時代のHTTPアクセス再入門
Introduction httpClient on Java11 / Java11時代のHTTPアクセス再入門
tamtam180
Monitoring Complex Systems: Keeping Your Head on Straight in a Hard World
Monitoring Complex Systems: Keeping Your Head on Straight in a Hard World
Brian Troutwine
Java Performance Tuning
Java Performance Tuning
Atthakorn Chanthong
AngularJS, More Than Directives !
AngularJS, More Than Directives !
Gaurav Behere
High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)
Nicholas Zakas
Douglas Crockford: Serversideness
Douglas Crockford: Serversideness
WebExpo
Mobile Fest 2018. Yonatan Levin. WTF with Android Background Restrictions
Mobile Fest 2018. Yonatan Levin. WTF with Android Background Restrictions
MobileFest2018
Symfony 1, mi viejo amigo
Symfony 1, mi viejo amigo
Jose Antonio Pio
Time Code: Automating Tasks in WordPress with WP-Cron
Time Code: Automating Tasks in WordPress with WP-Cron
Shawn Hooper
Monitoring und Metriken im Wunderland
Monitoring und Metriken im Wunderland
D
Similaire à 倒计时优化点滴
(20)
I os 06
I os 06
Building resilient applications
Building resilient applications
Java ME API Next
Java ME API Next
Performance patterns
Performance patterns
Why you should be using structured logs
Why you should be using structured logs
Timers in Unix/Linux
Timers in Unix/Linux
Advanced patterns in asynchronous programming
Advanced patterns in asynchronous programming
Test driven development
Test driven development
DevoxxUK: Optimizating Application Performance on Kubernetes
DevoxxUK: Optimizating Application Performance on Kubernetes
3 things you must know to think reactive - Geecon Kraków 2015
3 things you must know to think reactive - Geecon Kraków 2015
Introduction httpClient on Java11 / Java11時代のHTTPアクセス再入門
Introduction httpClient on Java11 / Java11時代のHTTPアクセス再入門
Monitoring Complex Systems: Keeping Your Head on Straight in a Hard World
Monitoring Complex Systems: Keeping Your Head on Straight in a Hard World
Java Performance Tuning
Java Performance Tuning
AngularJS, More Than Directives !
AngularJS, More Than Directives !
High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)
Douglas Crockford: Serversideness
Douglas Crockford: Serversideness
Mobile Fest 2018. Yonatan Levin. WTF with Android Background Restrictions
Mobile Fest 2018. Yonatan Levin. WTF with Android Background Restrictions
Symfony 1, mi viejo amigo
Symfony 1, mi viejo amigo
Time Code: Automating Tasks in WordPress with WP-Cron
Time Code: Automating Tasks in WordPress with WP-Cron
Monitoring und Metriken im Wunderland
Monitoring und Metriken im Wunderland
Dernier
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
Srushith Repakula
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
marcuskenyatta275
The Metaverse: Are We There Yet?
The Metaverse: Are We There Yet?
Mark Billinghurst
Working together SRE & Platform Engineering
Working together SRE & Platform Engineering
Marcus Vechiato
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
FIDO Alliance
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
FIDO Alliance
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
FIDO Alliance
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
GDSC PJATK
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Skynet Technologies
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Exakis Nelite
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
FIDO Alliance
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
panagenda
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
ScyllaDB
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
IES VE
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
中 央社
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Leah Henrickson
AI mind or machine power point presentation
AI mind or machine power point presentation
yogeshlabana357357
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
FIDO Alliance
Dernier
(20)
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
The Metaverse: Are We There Yet?
The Metaverse: Are We There Yet?
Working together SRE & Platform Engineering
Working together SRE & Platform Engineering
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
AI mind or machine power point presentation
AI mind or machine power point presentation
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
倒计时优化点滴
1.
new Timer
etai var aTimer = Ju.app.timer.create( { timeEnd: timeEnd, timeCurrent: timeCurrent, container: theTimer, style: 'simple', callback: function(handler){ console.log(handler); } } );
2.
‣ ‣ ‣ ‣ ‣ ‣
3.
WTF?
....
4.
1.
• ; •
5.
setInterval : 5mins
/ hour setTimeout : 10min / hour 10+ / day
6.
2.
•
7.
3.
• •
8.
3.
• •
9.
10.
- a. b.
11.
- a. b.
12.
- b.
13.
- before:
14.
- a.
innerHTML
15.
- b. replaceHTML
When innerHTML isn’t Fast Enough
16.
- before
innerHTML replaceHTML ff3.6 2600 ff3.6 600 ff3.6 3000 ie8 6100 ie8 900 ie8 4200 ie6 6300 ie6 1200 ie6 5500
17.
- <p class="dsec">.6</p>
18.
- dsec.gif
19.
- html
20.
21.
-
“ ” var aTimer = Ju.app.timer.create( { timeEnd: timeEnd, timeCurrent: timeCurrent, timeLeft: 0, container: theTimer, callback: function(handler){ alert(‘time’s up!’); } } ); Ju.app.timer.remove(aTimer);
22.
-
“ ”
23.
-
“ ”
24.
-
“ ”
25.
/ Tips
26.
/ Tips -
1. vs timer • timer • • setInterval?
27.
/ Tips -
1. vs timer “ ” “ ”
28.
/ Tips -
1. vs timer
29.
/ Tips -
1. vs timer
30.
/ Tips -
1. vs timer => +
31.
/ Tips - 2.
setTimeout vs setInterval “ bug”
32.
/ Tips - 2.
setTimeout vs setInterval setTimeout or setInterval?
33.
/ Tips 2.
setTimeout vs setInterval How JavaScript Timers Work
34.
/ Tips
- 2. setTimeout vs setInterval SetTimeout
35.
36.
37.
Google I/O Conference:
HTML5 Countdown Finale
38.
Google I/O Conference:
HTML5 Countdown Finale
39.
checker
“ ”
40.
Q /A
Télécharger maintenant