Introduction The performance of web is getting important due to the fact that more and more services have been presented by web interfaces recently. Our.

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
ICT for IGCSE – Syllabus Cambridge IGCSE ® Information and Communication Technology0417.
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
Inline, Internal, and External FIle
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
Web Design Basic Concepts.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
4.1 JavaScript Introduction
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
JavaScript & jQuery the missing manual Chapter 11
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
JS: Document Object Model (DOM)
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
JQuery Write less, do more…. Lecture Plan jQuery – what and why The ready function Creating Content Changing Elements Applying CSS Applying functions.
Adapting web pages for mobile devices Fredrik Andersson Hannes Nevalainen.
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
1 Approaches for Asynchronous Communication in Web Applications Stefan Potthast and Mike Rowe.
Internet Browsers and Add-ons Popular browsers Browser stats (shown in talk) What a browser does Javascript (shown in talk) * Add-ons * Also see an explanation.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
JavaScript, Fourth Edition
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
Browser Bugs & Validation SIPB Introduction to Web Design Wednesday, January 20th Jonté Craighead & Cathy Zhang.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
Review of the DOM Node properties and methods Some ways of accessing nodes Appending, copying and removing nodes Event handling – Inline – Scripting –
Protecting Browsers from Extension Vulnerabilities Paper by: Adam Barth, Adrienne Porter Felt, Prateek Saxena at University of California, Berkeley and.
OPTIMISING USER INTERFACES FOR MOBILE COMPUTER ASSISTED INTERVIEWING DEVICES Prepared By Otyek Ronald James Uganda Bureau of Statistics Presented at the.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Introduction to jQuery. 2 Objectives When you complete this chapter, you will be able to: Select elements using jQuery syntax Use built-in jQuery functions.
JavaScript and Ajax (Internet Background) Week 1 Web site:
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
IN THE DOCUMENT OBJECT MODEL, EACH LINE OF HTML IS AN ELEMENT (AN OBJECT), ABLE TO HAVE ATTRIBUTES, PROPERTIES AND VALUES. CSS TELLS THE BROWSER HOW TO.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
CSE541: Web Applications Special Thanks to M. Abdur Rahman.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
Chapter 13: DHTML: Object Model and Collections CIS 275—Web Application Development for Business I.
JQuery Fundamentals Introduction Tutorial Videos
Programming Web Pages with JavaScript
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Department of Computer Science
JavaScript and Ajax (Internet Background)
Introduction to HTML.
WEB PAGE AUTHORINHG AND DESIGNING
ISC440: Web Programming 2 AJAX
Unit 6 part 3 Test Javascript Test.
CS 4722 Computer Graphics and Multimedia Spring 2018
Introduction to JavaScript & jQuery
Client-Server Model: Requesting a Web Page
Introduction to JavaScript
Murach's JavaScript and jQuery (3rd Ed.)
Web Application Development Using PHP
© 2017, Mike Murach & Associates, Inc.
ADTEL WEBSITE
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Introduction The performance of web is getting important due to the fact that more and more services have been presented by web interfaces recently. Our experiments demonstrated some common used implementations, for example, we often modify HTML contents by JavaScript, and their cost of time. Materials and methods HTTP requests optimization Programmers can put inline JavaScript at the bottom of a page so that browsers would send HTTP requests before parsing and executing JavaScript. Also, we should always write CSS styles and JavaScript codes in individual files such that browsers would be able to cache them. Manipulating contents with JavaScript The most common manipulation would be appending text or HTML codes to nodes of pages. We experimented on four methods including “direct appending”, “buffered appending with ‘+’ operator of string”, “buffered appending with push and join method of Array”, and “buffered appending by JQuery selector”. Animation At present, we may make objects animate by the transition property of CSS3 or the animate method of JQuery. Acknowledgments Most data of this poster was extracted from James’s report of meeting. Thanks for his previous contribution. Results We reinstalled all browsers and disabled add-ons before our experiments. We had four methods of manipulating contents with JavaScript executed on Google Chrome 37, Mozilla Firefox 32, Microsoft IE 9, and Opera 24. The experimental results were shown below: Conclusions Direct appending is trivially the worst method of modifying HTML codes. Methods with buffered are always better; however, to tell which one is better than the others is quite difficult. The longer contents the original node has, the much time browsers take to append strings. Implementation using JQuery shows that its performance does not depend on the scale of text to append. This phenomenon allows front-end programmers to estimate executing time of JavaScript codes. Comparison of methods affecting front-end performance between browsers James Wun, Danny Lin Department of Computer Science and Information Engineering, National Chung Cheng University, Chiayi, Taiwan References improve-your-web-page-performance/ javascript-performance/ Scale: 500 Unit: ms Test 1Test 2Test 3 Chrome5482,0644,945 Firefox6031,8842,909 IE2,1596,31710,498 Opera4951,4212, Direct Appending 2. Buffered Appending with ‘+’ Operator of String 3. Buffered Appending with Push and Join Method of Array 4. Buffered Appending by JQuery Selector Scale: 500 Unit: ms ‘+’ opt 1‘+’ opt 2‘+’ opt 3 Chrome Firefox IE Opera Scale: 500 Unit: ms Push 1Push 2Push 3 Chrome Firefox IE Opera Scale: 20,000 接字串 1 接字串 2 接字串 3 Chrome Firefox IE Opera appended by JQuery var content = document.getElementById(‘content’); while(xxxxxx){ content.innerHTML += “Something”+apple+”banana”+orange; } var toAppend = “”; var content = document.getElementById(‘content’); while(xxxxxx){ toAppend += “Something”+apple+”banana”+orange; } content.innerHTML += toAppend; var toAppend = new Array(); var content = document.getElementById(‘content’); while(xxxxxx){ toAppend.push(“Something” ); toAppend.push(apple); toAppend.push(”banana” ); toAppend.push(orange); } content.innerHTML += toAppend.join(“”); var toAppend = “”; var content = document.getElementById(‘content’); while(xxxxxx){ toAppend += “Something”+apple+”banana”+orange; } $(“#content”).append(toAppend);