Nov 23, 2014 Sofia var title = “RequireJS - a brand new world!”; var info = { name: “Bogoi Bogdanov”, otherOptional: “Managing Partner at Empters Ltd.”

Slides:



Advertisements
Similar presentations
Building Fast 3rd-Party Webapps O'Reilly Velocity Web Performance and Operations Conference 24 June Lessons.
Advertisements

CS193H: High Performance Web Sites Lecture 12: Rule 8 – Make JavaScript and CSS External Steve Souders Google
Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
Introduction to jQuery (for Drupal) Amit Asaravala “aasarava” on drupal.org.
Building a large scale JavaScript application in TypeScript Alexandru Dima Microsoft.
Client Side Dev. Toolkit HTML5 JavaScript CSS (and Less, but not today) Bootstrap Knockout.js Require.js (moving to Browserify) Toastr Visual Studio and.
Progress Report 11/1/01 Matt Bridges. Overview Data collection and analysis tool for web site traffic Lets website administrators know who is on their.
Multiple Tiers in Action
HCI 201 Week 5 Loose Ends. Agenda Image stuff Image stuff File stuff File stuff Bandwidth Bandwidth UNIX UNIX HTML HTML Design elements Design elements.
Nov 23, 2014 Sofia var title = “Title Here, 36pt, Segoe UI”; var info = { name: “Author”, otherOptional: “Info” };
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
From Idea to App Store. Remember to and tag #SPSNashville in your posts! Platinum Sponsors Gold Sponsors Thank You for being a part.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
WebMatrix 2 /* web with benefits */. Everything You Need Start create new from OSS apps or templates, or start with existing sites hosted remotely or.
JavaScript Form Validation
Drupal Training Syllabus Chaitanya Lakshmi
L. Grewe LAMP, WAMP and... Motivaiton Basic Web Systems with Delivery of Static and Dynamic Web Pages html, css, media javascript (“dynamic” on client.
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Advanced Windows 8 Apps Using JavaScript Jump Start Exam Prep M5: Data, Files, and Encryption Michael Palermo Microsoft Technical Evangelist Jeremy.
Jianfeng Liu, eBay Justin Early, eclipse.org/vjet/
JavaScript Syntax, how to use it in a HTML document
Extend the Operations Dashboard with Custom Widgets (and more)
AMD and RequireJS Splitting JavaScript Code into Dependent Modules Software University Technical Trainers SoftUni Team.
PERFORMANCE ENHANCEMENT IN ASP.NET By Hassan Tariq Session #1.
Ajax for Dynamic Web Development Gregory McChesney.
Canopy walk through Single-Page Apps (SPAs) Benjamin Howarth Freelancer, Code Gecko Umbraco UK Festival, Fri 30 th Oct 2015 CODE GECKO.
“RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino.
WorldWide Telescope WWT HTML5 SDK WEB CONTROL WEB CLIENT DEVELOPMENT OVERVIEW RON GILCHRIST (WEB ON GITHUB NOV 7, 2015.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
Restricted © Siemens AG All rights reserved A Developer’s Insights Into Performance Optimizations for Mobile Web Apps CT DC AA EM LP2 | June 2015.
Optimizing Your JavaScript App for Performance Lloyd Heberlie Dasa Paddock Rene Rubalcava.
Bundles, Minification Andres Käver, IT Kolledž
Google Chrome Extensions var title = “ Google Chrome Extensions ”; $(this).attr(“title”, title); $(this).data({ description: ‘How to create and distribute’,
SHAREPOINT & JQUERY. Hi, my name and I am a product manager at lightning tools. I have been working with SharePoint for 5 years.
Web Cache. What is Cache? Cache is the storing of data temporarily to improve performance. Cache exist in a variety of areas such as your CPU, Hard Disk.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
Windows Azure and iOS Chris Risner Windows Azure Technical Evangelist Microsoft
Wes Hackett Principal Solutions Architect Chris O’Brien Head of Development.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
#SummitNow The Share Widget Library 13 th November 2013 Dave Draper
Javascript Design Patterns. AMD & commonJS. RequireJS Marc Torrent Vernetta.
Site Speed: The Ultimate UX Feature… for SEO. A case study on how to increase search engine crawling and online conversion Jonathon Colman In-House SEO.
Building a Chrome extension Chance Feick |. Outline History Development – Manifest File – Content Scripts – chrome.* API Installation Deployment Live.
Servlets What is a Servlet?
Node.js Modules Header Mastering Node.js, Part 2 Eric W. Greene
The Share Widget Library
JavaScript: Good Practices
Client Side Dev.
Modules, Babel, RequireJS, Other JavaScript Module Systems
Subtitle / Info 32pt, Segoe UI, max. 3 lines
Getting web pages First we need to get the webpage by issuing a HTTP request. The best option for this is the requests library that comes with Anaconda:
Tips for Website Speed Optimization
JavaScript an introduction.
04 | Web Applications Gerry O’Brien | Technical Content Development Manager Paul Pardi | Senior Content Publishing Manager.
IND8115 – LTTng Web View December, 12th 2016 Yonni Chen.
Introduction to SharePoint Framework
var title = “Title Here, 36pt, Segoe UI”;
Module P3 Practical: Building a webapp in nodejs and
Unit 6 part 3 Test Javascript Test.
INTRODUCTION TO By Stepan Vardanyan.
Serverless Architecture in the Cloud
Building Apps in Azure with only Scripting Skills
Yale Digital Conference 2019
Optimizing Your JavaScript App for Performance
Presentation transcript:

Nov 23, 2014 Sofia var title = “RequireJS - a brand new world!”; var info = { name: “Bogoi Bogdanov”, otherOptional: “Managing Partner at Empters Ltd.” };

Nov 23, 2014agenda(); Web Development known issues What is RequireJS What is RequireJS module How to create and use modules Usage of RequireJS Optimization Tool Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Typical HTML page – Bad practice... … Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 How Browsers load JavaScript & CSS files Bogoi Bogdanov RequireJS - a brand new world! stylesheet1.css scriptfile1.js scriptfile2.js stylesheet2.css stylesheet3.css 100 ms

Nov 23, 2014 Typical HTML page – Good practice … Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 How Browsers load JavaScript & CSS files Bogoi Bogdanov RequireJS - a brand new world! stylesheet1.css stylesheet2.css stylesheet3.css scriptfile1.js scriptfile2.js 100 ms

Nov 23, 2014 Always put the JavaScript files after the CSS files!

Nov 23, 2014 It is better to have one big JavaScript file than many small files!

Nov 23, 2014 Typical JavaScript file var variable1 = “something”; var variable2 = 5; var variable3 = “something else”; function doSomething1() { // some code here } function doSomething2() { // some more code here } $( document ).ready(function() { // some other code here }); ….. Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Polluted Global Namespace Hard to maintain dependencies Hard code maintenance Lack of code reusability Issues of Typical JavaScript files Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Web sites are turning into Web apps Code complexity grows as the site gets bigger Developer wants discrete JS files/modules Deployment wants optimized code in just one or a few HTTP callsFacts Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 The solution - RequireJS “RequireJS is a JavaScript file and module loader.” “Using a modular script loader like RequireJS will improve the speed and quality of your code.” Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Asynchronous Module Definition (AMD) API specifies a mechanism for defining modules such that the module and its dependencies can be asynchronously loaded.

Nov 23, 2014 define() require() require.confRequireJS Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 define(name?, [‘dep1’,’dep2’,…]?, function(dep1,dep2,…) { var object = {}; //some fancy code return object; //optional }); RequireJS – define() function Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 require([‘dep1’,’dep2’,…]?, function(dep1, dep2, …) { //some fancy code //no return! }); RequireJS – require() function Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 RequireJS Setup Bogoi Bogdanov RequireJS - a brand new world! … …

Nov 23, 2014 Page load time analysis Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Merge modules in single file Minify and Uglify the file RequireJS Optimization Tool Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 r.js build.js node.js or Rhino for Java RequireJS Optimization Tool Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Page load time analysis Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Performance analysis of the Demo Bogoi Bogdanov RequireJS - a brand new world! Initial JavaScript size o 1.09 MB (1,153,523 bytes) Optimized JavaScript size o 95.4 KB (97,699 bytes) ~ 12 times less bytes! Initial JavaScript requests count o 7 requests Optimized requests count o 2 requests ~ 3.5 times less requests!

Nov 23, 2014 Reusable modules Asynchronous Loading of JavaScript files Less HTTP requests Optimized JavaScript files RequireJS Overall Bogoi Bogdanov RequireJS - a brand new world!

Nov 23, 2014 Q & A Bogoi Bogdanov, managing partner at Empters Ltd. / empters

Nov 23, 2014 Upcoming events ISTA Conference November Stay tuned for 2015: Azure Bootcamp UXify Bulgaria SQLSaturday and more js.next();

Nov 23, 2014 Thanks to our Sponsors: Diamond Sponsor: Gold Sponsors: Swag Sponsors: Media Partners: Silver Sponsors: Hosting partner: Technological Partners: Bronze Sponsors: