Enviar búsqueda
Cargar
JavaScript shell scripting
•
14 recomendaciones
•
6,052 vistas
Stoyan Stefanov
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 52
Descargar ahora
Descargar para leer sin conexión
Recomendados
Firefox OS something 201411
Firefox OS something 201411
dynamis
Practical project automation
Practical project automation
Reinout van Rees
Wso2 esb-rest-integration
Wso2 esb-rest-integration
Chanaka Fernando
Web pack and friends
Web pack and friends
Matthias Hryniszak
Service worker - Offline Web
Service worker - Offline Web
Bruno Oliveira
Cake Php 101 Brownbag
Cake Php 101 Brownbag
Finster
Look Up Mobile Javascript
Look Up Mobile Javascript
Dron Rathore
Thomas Fuchs Presentation
Thomas Fuchs Presentation
RubyOnRails_dude
Recomendados
Firefox OS something 201411
Firefox OS something 201411
dynamis
Practical project automation
Practical project automation
Reinout van Rees
Wso2 esb-rest-integration
Wso2 esb-rest-integration
Chanaka Fernando
Web pack and friends
Web pack and friends
Matthias Hryniszak
Service worker - Offline Web
Service worker - Offline Web
Bruno Oliveira
Cake Php 101 Brownbag
Cake Php 101 Brownbag
Finster
Look Up Mobile Javascript
Look Up Mobile Javascript
Dron Rathore
Thomas Fuchs Presentation
Thomas Fuchs Presentation
RubyOnRails_dude
High-performance DOM scripting
High-performance DOM scripting
Stoyan Stefanov
JavaScript is everywhere
JavaScript is everywhere
Stoyan Stefanov
CSS and image optimization
CSS and image optimization
Stoyan Stefanov
Voices that matter: High Performance Web Sites
Voices that matter: High Performance Web Sites
Stoyan Stefanov
HTML5 e Css3 - 7 | WebMaster & WebDesigner
HTML5 e Css3 - 7 | WebMaster & WebDesigner
Matteo Magni
JavaScript Performance Patterns
JavaScript Performance Patterns
Stoyan Stefanov
JavaScript Execution Context
JavaScript Execution Context
Juan Medina
Reactive JavaScript
Reactive JavaScript
Stoyan Stefanov
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS Apps
Rebecca Murphey
Html5, css3 and the future of web technologies
Html5, css3 and the future of web technologies
Võ Duy Tuấn
Trees and Hierarchies in SQL
Trees and Hierarchies in SQL
Eduard Hildebrandt
Hierarchical data models in Relational Databases
Hierarchical data models in Relational Databases
navicorevn
Trees In The Database - Advanced data structures
Trees In The Database - Advanced data structures
Lorenzo Alberton
JavaScript for PHP developers
JavaScript for PHP developers
Stoyan Stefanov
Building Large jQuery Applications
Building Large jQuery Applications
Rebecca Murphey
Practical Object Oriented Models In Sql
Practical Object Oriented Models In Sql
Karwin Software Solutions LLC
Sql Antipatterns Strike Back
Sql Antipatterns Strike Back
Karwin Software Solutions LLC
Models for hierarchical data
Models for hierarchical data
Karwin Software Solutions LLC
Efficient JavaScript Development
Efficient JavaScript Development
wolframkriesing
Titanium: Develop Native Mobile Apps with JavaScript
Titanium: Develop Native Mobile Apps with JavaScript
Fokke Zandbergen
How to make Ajax Libraries work for you
How to make Ajax Libraries work for you
Simon Willison
Be ef presentation-securitybyte2011-michele_orru
Be ef presentation-securitybyte2011-michele_orru
Michele Orru
Más contenido relacionado
Destacado
High-performance DOM scripting
High-performance DOM scripting
Stoyan Stefanov
JavaScript is everywhere
JavaScript is everywhere
Stoyan Stefanov
CSS and image optimization
CSS and image optimization
Stoyan Stefanov
Voices that matter: High Performance Web Sites
Voices that matter: High Performance Web Sites
Stoyan Stefanov
HTML5 e Css3 - 7 | WebMaster & WebDesigner
HTML5 e Css3 - 7 | WebMaster & WebDesigner
Matteo Magni
JavaScript Performance Patterns
JavaScript Performance Patterns
Stoyan Stefanov
JavaScript Execution Context
JavaScript Execution Context
Juan Medina
Reactive JavaScript
Reactive JavaScript
Stoyan Stefanov
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS Apps
Rebecca Murphey
Html5, css3 and the future of web technologies
Html5, css3 and the future of web technologies
Võ Duy Tuấn
Trees and Hierarchies in SQL
Trees and Hierarchies in SQL
Eduard Hildebrandt
Hierarchical data models in Relational Databases
Hierarchical data models in Relational Databases
navicorevn
Trees In The Database - Advanced data structures
Trees In The Database - Advanced data structures
Lorenzo Alberton
JavaScript for PHP developers
JavaScript for PHP developers
Stoyan Stefanov
Building Large jQuery Applications
Building Large jQuery Applications
Rebecca Murphey
Practical Object Oriented Models In Sql
Practical Object Oriented Models In Sql
Karwin Software Solutions LLC
Sql Antipatterns Strike Back
Sql Antipatterns Strike Back
Karwin Software Solutions LLC
Models for hierarchical data
Models for hierarchical data
Karwin Software Solutions LLC
Destacado
(18)
High-performance DOM scripting
High-performance DOM scripting
JavaScript is everywhere
JavaScript is everywhere
CSS and image optimization
CSS and image optimization
Voices that matter: High Performance Web Sites
Voices that matter: High Performance Web Sites
HTML5 e Css3 - 7 | WebMaster & WebDesigner
HTML5 e Css3 - 7 | WebMaster & WebDesigner
JavaScript Performance Patterns
JavaScript Performance Patterns
JavaScript Execution Context
JavaScript Execution Context
Reactive JavaScript
Reactive JavaScript
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS Apps
Html5, css3 and the future of web technologies
Html5, css3 and the future of web technologies
Trees and Hierarchies in SQL
Trees and Hierarchies in SQL
Hierarchical data models in Relational Databases
Hierarchical data models in Relational Databases
Trees In The Database - Advanced data structures
Trees In The Database - Advanced data structures
JavaScript for PHP developers
JavaScript for PHP developers
Building Large jQuery Applications
Building Large jQuery Applications
Practical Object Oriented Models In Sql
Practical Object Oriented Models In Sql
Sql Antipatterns Strike Back
Sql Antipatterns Strike Back
Models for hierarchical data
Models for hierarchical data
Similar a JavaScript shell scripting
Efficient JavaScript Development
Efficient JavaScript Development
wolframkriesing
Titanium: Develop Native Mobile Apps with JavaScript
Titanium: Develop Native Mobile Apps with JavaScript
Fokke Zandbergen
How to make Ajax Libraries work for you
How to make Ajax Libraries work for you
Simon Willison
Be ef presentation-securitybyte2011-michele_orru
Be ef presentation-securitybyte2011-michele_orru
Michele Orru
Sanjeev ghai 12
Sanjeev ghai 12
Praveen kumar
Brunch With Coffee
Brunch With Coffee
Sébastien Gruhier
node.js - Fast event based web application development
node.js - Fast event based web application development
openForce Information Technology GesmbH
That’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developers
György Balássy
CoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developers
Mehdi Valikhani
Offline Application Cache
Offline Application Cache
Jonathan Stark
Java script basic
Java script basic
Vithushan Vinayagamoorthy
Declarative and standards-based web application development with the Ample SDK
Declarative and standards-based web application development with the Ample SDK
Béla Varga
Cocoaheads Stockholm 2014-02: Writing your own jailbreak tweak
Cocoaheads Stockholm 2014-02: Writing your own jailbreak tweak
Joachim Bengtsson
Mozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJS
Robert Nyman
Node.JS| Coffeescript Presentation
Node.JS| Coffeescript Presentation
Sam Frons
jQuery Presentation to Rails Developers
jQuery Presentation to Rails Developers
Yehuda Katz
CodeStock :: Introduction To MacRuby and HotCocoa
CodeStock :: Introduction To MacRuby and HotCocoa
Doc Norton
Appcelerator Alloy MVC
Appcelerator Alloy MVC
Fokke Zandbergen
JSConf US 2014: Building Isomorphic Apps
JSConf US 2014: Building Isomorphic Apps
Spike Brehm
Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)
Ran Mizrahi
Similar a JavaScript shell scripting
(20)
Efficient JavaScript Development
Efficient JavaScript Development
Titanium: Develop Native Mobile Apps with JavaScript
Titanium: Develop Native Mobile Apps with JavaScript
How to make Ajax Libraries work for you
How to make Ajax Libraries work for you
Be ef presentation-securitybyte2011-michele_orru
Be ef presentation-securitybyte2011-michele_orru
Sanjeev ghai 12
Sanjeev ghai 12
Brunch With Coffee
Brunch With Coffee
node.js - Fast event based web application development
node.js - Fast event based web application development
That’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developers
CoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developers
Offline Application Cache
Offline Application Cache
Java script basic
Java script basic
Declarative and standards-based web application development with the Ample SDK
Declarative and standards-based web application development with the Ample SDK
Cocoaheads Stockholm 2014-02: Writing your own jailbreak tweak
Cocoaheads Stockholm 2014-02: Writing your own jailbreak tweak
Mozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJS
Node.JS| Coffeescript Presentation
Node.JS| Coffeescript Presentation
jQuery Presentation to Rails Developers
jQuery Presentation to Rails Developers
CodeStock :: Introduction To MacRuby and HotCocoa
CodeStock :: Introduction To MacRuby and HotCocoa
Appcelerator Alloy MVC
Appcelerator Alloy MVC
JSConf US 2014: Building Isomorphic Apps
JSConf US 2014: Building Isomorphic Apps
Intro to node.js - Ran Mizrahi (27/8/2014)
Intro to node.js - Ran Mizrahi (27/8/2014)
Más de Stoyan Stefanov
YSlow hacking
YSlow hacking
Stoyan Stefanov
Liking performance
Liking performance
Stoyan Stefanov
JavaScript performance patterns
JavaScript performance patterns
Stoyan Stefanov
High Performance Social Plugins
High Performance Social Plugins
Stoyan Stefanov
Social Button BFFs
Social Button BFFs
Stoyan Stefanov
JavaScript навсякъде
JavaScript навсякъде
Stoyan Stefanov
WPO @ PubCon 2010
WPO @ PubCon 2010
Stoyan Stefanov
Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2
Stoyan Stefanov
Progressive Downloads and Rendering
Progressive Downloads and Rendering
Stoyan Stefanov
Performance patterns
Performance patterns
Stoyan Stefanov
Psychology of performance
Psychology of performance
Stoyan Stefanov
3-in-1 YSlow
3-in-1 YSlow
Stoyan Stefanov
The business of performance
The business of performance
Stoyan Stefanov
JavaScript Patterns
JavaScript Patterns
Stoyan Stefanov
Ignite Velocity: Image Weight Loss Clinic
Ignite Velocity: Image Weight Loss Clinic
Stoyan Stefanov
Don't make me wait! or Building High-Performance Web Applications
Don't make me wait! or Building High-Performance Web Applications
Stoyan Stefanov
High Performance Kick Ass Web Apps (JavaScript edition)
High Performance Kick Ass Web Apps (JavaScript edition)
Stoyan Stefanov
YSlow 2.0
YSlow 2.0
Stoyan Stefanov
Beginning Object-Oriented JavaScript
Beginning Object-Oriented JavaScript
Stoyan Stefanov
Image Optimization for the Web at php|works
Image Optimization for the Web at php|works
Stoyan Stefanov
Más de Stoyan Stefanov
(20)
YSlow hacking
YSlow hacking
Liking performance
Liking performance
JavaScript performance patterns
JavaScript performance patterns
High Performance Social Plugins
High Performance Social Plugins
Social Button BFFs
Social Button BFFs
JavaScript навсякъде
JavaScript навсякъде
WPO @ PubCon 2010
WPO @ PubCon 2010
Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering
Progressive Downloads and Rendering
Performance patterns
Performance patterns
Psychology of performance
Psychology of performance
3-in-1 YSlow
3-in-1 YSlow
The business of performance
The business of performance
JavaScript Patterns
JavaScript Patterns
Ignite Velocity: Image Weight Loss Clinic
Ignite Velocity: Image Weight Loss Clinic
Don't make me wait! or Building High-Performance Web Applications
Don't make me wait! or Building High-Performance Web Applications
High Performance Kick Ass Web Apps (JavaScript edition)
High Performance Kick Ass Web Apps (JavaScript edition)
YSlow 2.0
YSlow 2.0
Beginning Object-Oriented JavaScript
Beginning Object-Oriented JavaScript
Image Optimization for the Web at php|works
Image Optimization for the Web at php|works
Último
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Databarracks
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
mohitsingh558521
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
LoriGlavin3
Último
(20)
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
How to write a Business Continuity Plan
How to write a Business Continuity Plan
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
JavaScript shell scripting
1.
JavaScript is everywhere
#42:! C:> WSH !
2.
Stoyan!
3.
4.
Programming!
5.
JavaScript!
6.
... is everywhere!
7.
On the server!
8.
Mobile!
9.
Desktop!
10.
Browser extensions!
11.
Photoshop!
12.
Form validation
too!!
13.
14.
Shell scripting!
15.
In Windows!
16.
WSH: Windows Scripting Host!
17.
C:>edit hello.js!
18.
var a =
"Hello",! b = " WSH!",! c = a + b;! ! WScript.Echo(c);!
19.
C:>cscript hello.js! Hello WSH!! C:>wscript
hello.js!
20.
Open apps!
21.
var ie =
new ActiveXObject! ("InternetExplorer.Application");! ie.Visible = true;! ie.navigate('yahoo.com');!
22.
Firefox? !
23.
HTTPWatch!
24.
25.
26.
Speed!
27.
1. Fix with
YSlow !
28.
2. No regressions!
29.
Monitor!
30.
Set limits!
31.
e.g.! max 2
scripts! max 2 styles! max 9 images! max 0 redirects!
32.
Scripting HTTPWatch!
33.
var http =
new ActiveXObject! ("HTTPWatch.Controller"),! ie = http.IE.New(),! ff = http.Firefox.New();!
34.
// browser cache! ie.clearCache();! ! //
show HTTPWatch! ie.OpenWindow(false);!
35.
ie.Record();! ie.GotoUrl("yahoo.com");! http.Wait(ie, -1);! ie.Stop();! ! ie.CloseBrowser();!
36.
new HTTPWatch() http://github.com/stoyan/etc/!
37.
var http =
new HTTPWatch('ff');! http.go('search.yahoo.com');! http.done();!
38.
[video]!
39.
var har =
http.toHAR();! har = eval('(' + har + ')');! ! print(har.log.browser.name);! print(har.log.browser.version);! print('# requests: ');! print(har.log.entries.length);!
40.
Internet Explorer 6.0.29...! #
requests: 10! ! Firefox 3.5.6! # requests: 15!
41.
[video]!
42.
var comps =!
http.getComponentsByType();! ! for (var i in comps) {! print(i);! print(comps[i].length);! }!
43.
redirect: 1! text/html: 3! image/gif:
4! image/png: 3! text/javascript: 1!
44.
But wait...!
45.
What about DOM?!
46.
[video]!
47.
var http =
new HTTPWatch();! http.go('search.yahoo.com');! ! var d = http.watch.container.document;! ! print(d! ! .getElementsByTagName('*')! ! .length);! ! print(d! ! .documentElement! ! .innerHTML);!
48.
require('statz.js');! ! var doc =
http.watch! ! ! .container.document;! var html = http.har.log! ! ! .entries[0]! ! ! .response.content.text;! ! var out = statz(document, html);! print(out.join("n"));!
49.
JS attributes (e.g.
onclick): 1207 bytes! CSS style attributes: 883! Inline JS: 5243! Inline CSS: 5015! All innerHTML: 17283! # DOM elements: 134! ! Total size: 14124 bytes! Content size: 401 bytes! Content-to-markup ratio: 0.03!
50.
To summarize...!
51.
JavaScript! WSH! HTTPWatch! Monitor! DOM and HTTP! IE
and Firefox!
52.
Thanks!! phpied.com!
Descargar ahora