• .NET Developer Tools DevTools

    UI controls for ASP.NET AJAX, MVC, WPF,
    Silverlight, Windows 8 and Windows Phone

  • Hybrid Mobile Development Icenium

    Cross-platform Mobile Development Tool
    with cloud-based architecture

  • HTML5 / JavaScript Development Kendo UI

    Everything you need to build sites and
    mobile apps with JavaScript and HTML5

  • Testing Tools TestStudio

    One easy tool for Functional, Performance,
    Load and Mobile software testing

  • Web Presence Platform Sitefinity CMS

    Everything for your online business - content
    management, ecommerce, emarketing

  • Agile Project Management TeamPulse

    Simple and intuitive project management
    and collaboration software

Contact us

We are here for you.
  • usa+1‒888‒365‒2779
  • uk+44‒20‒7291‒0580
  • bg+359‒2‒8099850
  • de+49‒89‒2441642‒70
  • au+61‒2‒8090‒1465
  • emailsales@telerik.com
Your account Access to your products, updates and support
Telerik Product Families
  • Your Account
    Your Account
    Log in
  • ABOUT US

    About Telerik

    • Company
    • Press Center
    • Customers
    • Community
    • Careers
    • Contacts
Kendo UI - The way of HTML5
Products ▼
Kendo UI Web Kendo UI Mobile Kendo UI DataViz Server Side Wrappers
Demos Purchase Download
Blogs Documentation
Support ▼
Premium Forums StackOverflow Forums
Resources ▼

Featured Resource

Kendo UI Dojo


Blogs Code Library Demos Documentation FAQ Testing
Premium Forums Roadmap User Voice Videos Webinars More Resources
Contact Us Search
 

Blogs

5 Benefits of Developing JavaScript Sites & Apps

Tuesday, August 09, 2011 by Kendo UI Team Blog | Comments 7

Now that the first Kendo UI beta is out, we’re starting to get tons of great feedback. One the common observations in early feedback is that many people are still struggling to fully understand why you would want to migrate towards JavaScript development instead of using traditional server-side technologies. It’s a great question, so today I present five benefits of this newer JavaScript approach.

Defining “JavaScript Sites & Apps”


Before I begin listing the benefits, it’s worth briefly explaining what I mean by “JavaScript sites and apps.”

Traditionally (at least, for the last decade), web developers have built sites using some kind of server-side technology, such as PHP, Rails, or .NET. These dynamic runtime engines do everything. They’re fetching data. They’re providing web service end-points. And they’re often rendering (or at least “composing”) front-end HTML, CSS, and JavaScript and sending it to the browser.

This model works and it has distinct benefits. It also has drawbacks.

With the server responsible for much of the UI rendering, everything must be “baked” in one place (the server) and then shipped to another (the browser). It’s like trying to cook dinner at a nearby restaurant and then running the finished plates to your house. Dinner will be hotter and served faster if you just cook in your own kitchen.

With the new “JavaScript” (sometimes referred to as “HTML5”) approach to development, the server is largely removed from the process of front-end rendering (it’s still needed for other tasks like data persistence, services, etc). Instead, a sophisticated JavaScript layer running in the browser receives data from the server and then handles all front-end rendering and logic. The term “apps” is also introduced since this approach can be used to create a new generation of “packaged apps,” freeing HTML and JavaScript from the confines of the browser.

That’s the definition. Here are five benefits the new JavaScript approach offers versus the traditional server-side development model:

1. Fast and Responsive

Performance matters. The fastest car. The most powerful blender. The fastest search results. In all things, we want to have the best, fastest experience, especially in software.

With JavaScript development, speed is the name of the game.

One of the key bottlenecks in modern web development is network latency. The time it takes to make a request to the server and get the results can account for a huge portion of page load time, and with hit-and-miss mobile internet, the problem is magnified. Every byte that travels from server to browser matters. If your application can do more with fewer bytes from the server, it will feel faster to users.

With JavaScript development, this is achieved by sending JSON (or sometimes XML) data to the client instead of sending a mix of data and markup HTML. All HTML rendering happens in the browser, keeping communication with the server fast and to a minimum. Just observe how fast the Kendo UI grid can be using this approach to display data from a remote JSON data service.

JavaScript development also means that changes in the UI (that do not impact the data) can be done without additional communication with the server. For example, the Kendo UI chart can be changed from bar to line with no need to talk to the server. The application can now be immediately responsive to user input.

2. Universal Front-End Platform

PHP. Ruby. Python. Rails. ASP.NET. Java. No matter which technology you use on the server, JavaScript and HTML5 can be used to provide a rich front-end. Not only does this make your front-end development more reusable and insulated against a changing server landscape, but it also lets you optimize server-side code for “backend” tasks.

For example, ASP.NET may make certain front-end tasks “drag-and-drop easy,” but it may not be the best platform for raw service performance (too much overhead). Maybe a lightweight NodeJS server would be a better simple, fast service provider.

With a JavaScript/HTML5 front-end, you can test server-side performance and pick the best platform for the task. As long as JSON gets to the browser, your front-end is covered.

3. Tablets, Phones, and Devices

Plug-ins will not power the next generation of rich mobile experiences. There are just too many devices and platforms for the plug-ins to ever achieve the necessary uniform distribution to be viable.

The same could be said for “native” apps. Businesses will tire of rebuilding an app 3 to 5 times just to make it accessible on devices. It’s a necessary evil of today’s phones and tablets (largely due to the app store distribution model), but there is growing momentum that suggests HTML5 could become the new “standard” in “native” app experiences, too.

And with supporting technologies like SVG, Canvas, and WebGL, standards-based development stands poised to have the power to do anything a plug-in or native app can do, with all of the reach a plug-in can never have and all of the convenience native apps can never offer.

Sure, you can use server-side runtimes to produce HTML5 to target these platforms, but can you package the server-produced HTML and “install” it on a mobile device? Probably not. That’s why adopting the JavaScript model is a must, and it leads to advantage numero quatro (number four).

4. Offline Support and App Stores

This is one of the most significant reasons to pick JavaScript/HTML5 development versus traditional server-side development.

For “web development” to replace the “desktop” platforms that have come before, it must provide experiences that work all the time, with and without active connections to the Internet. To use the classic scenario, the apps must work on a plane ride (and not some fancy plane with WiFi).

Server-side development has the crippling requirement to talk to the server after most user interactions. The moment you take the server away, the site or app is a paperweight.

With JavaScript/HTML5 development, apps can be usable and responsive, even in the absence of an active Internet connection. JavaScript front-ends, like those built with Kendo UI, can use locally cached data to draw and refresh the app until network connectivity is restored. And something like the Kendo UI DataSource will eventually help track changes to objects locally and persist those changes to the server later.

This is perfect for mobile app packaging, too. With a UI that can load and run on a device with or without a connection to the Internet, a JavaScript/HTML5 powered app can become indistinguishable from a “native” app. Server-side front-end development can’t get you there, but a JavaScript front-end can.

5. Industry Momentum

Finally, while not the best benefit of JavaScript development, the industry momentum behind JavaScript/HTML5 should be considered. JavaScript is the world’s most popular programming language. Google, Apple, and Microsoft have all thrown significant muscle and money behind this universal approach to development. And new tools, frameworks, and money making opportunities are emerging at a rapid pace for JavaScript developers.

You are in good company picking JavaScript/HTML5 development for starting new projects or improving existing HTML applications. Hiring talented developers will be easier (again, you can find them in any “developer camp”) and you’re picking a platform with increasingly broad reach, from Microsoft Office extensions (?!) to mobile phones to better, faster, more responsive traditional websites.

Don't get caught flat-footed dismissing the coming tide of JavaScript/HTML5 development in the way desktop developers originally dismissed the web. We all know how that story played out.

Is that all?

Of course, not. There are many more benefits of JavaScript/HTML5 development, but hopefully this helps jumpstart the critical thinking about the limits of traditional server-side development for front-end UI. Server technology will always be needed, but what we need it for is rapidly changing. If you want to target mobile, build offline-enabled websites/applications, or just create faster websites, you should seriously consider JavaScript development.

(And if you need JavaScript front-end tools, I happen to have some good ones to recommend…)

About the Author
Todd Anglin is an avid HTML5, CSS3, and JavaScript advocate, and geek about all things web development. He is an active speaker and author, helping developers around the world learn and adopt HTML5. Todd works for Telerik as VP of HTML5 Web & Mobile Tools, where his current technical focus is on Kendo UI. Todd is @toddanglin on Twitter.

7 Comments

  1. 1 Ben Hayat 09 Aug 2011
    Don't get caught flat-footed dismissing the coming tide of JavaScript/HTML5 development in the way desktop developers originally dismissed the web. We all know how that story played out.

    Well said!!!
    I won't make that mistake twice :-)

    ..Ben
  2. 2 Oscar Agreda 09 Aug 2011
    Great Article..
    as an Silverlight Developer, I know that now is HTML5 + JS (Kendo UI for a variety of excellent and all good factors is the best RAD on the making) which will finally provide what we have been looking for for so long.
    the 5 Points mentioned here are the key to success if we as software developers want to jump into the train of success for the nest 5 years.
  3. 3 Todd 10 Aug 2011
    @Ben, @Oscar- Glad you enjoyed the post. The HTML5/JavaScript wave is definitely rolling, so we're happy to be providing tools to help make the wave easier to ride!
  4. 4 David Hanson 19 Jan 2012
    I thoroughly enjoyed reading this article. You vividly illuminate the driving forces for embracing HTML5+JS development on the front-end over having it generated from the back-end.
  5. 5 Neil Gorin 21 Jan 2012

    Are we there yet?  That’s the question every parent fears after the first 10 minutes into a 3 hour car ride with the family.  But just as is true 55 years ago with me and my father on our way to Maryland from NY, it is true today.  I was promised 10 years ago that everything would be platform, device and browser independent.  I could right a single piece of code and it would be able to run on anything as dumb s a coffee pot (JAVA hahah).  But it never happened, and at times things actually got more device-specific.  I read and was intrigued by your Javascript/HTML5 article and look forward to the next year of mobile friendly web site development via KENDO.  Telerik taught me web development and now Telerik is going to unify my development efforts for all moving targets  BRAVO!  Are we there yet daddy?

     

    Dr. Neil Gorin

  6. 6 Jason 22 Jan 2012
    It makes sense. For intranet apps, it is ok. For internet app, you should have solid security system. How do we do that in case of JS calling web service to get JSON data? How do you do the authentication? In case of server side technology it is much more secure, it is in one place. In case of JS, multiple clients can call the webservice, how do you implement security in this case? If you have solution or details, please email me. Thanks, Jason.
  7. 7 Doug Smith 11 Sep 2012
    I love the rhythm of programming in Javascript - code, save, refresh the page. I love that no vendor has control over the language, and the availability of a wide variety of JS libraries, including JQuery and Kendo UI. Looking forward to using the newer features of HTML5. 

Comment

  1. Click to add

  2. Click to add

  3. Click to add

  4.    
     
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
     
      
       
Blogs feed
Categories

  • Tutorials (26)
  • Release (33)
  • Browsers (7)
  • Extensions (3)
  • Tip of the Week (10)
  • Videos (5)
  • Concepts and Theory (13)
  • Misc. (25)
  • Framework Constructs (6)
  • Mobile (6)
  • UI Widgets (5)
  • Blogs (1)
Archive
  • 2013 May (7)
  • 2013 April (10)
  • 2013 March (9)
  • 2013 February (12)
  • 2013 January (10)
  • 2012 December (9)
  • 2012 November (11)
  • 2012 October (6)
  • 2012 September (7)
  • 2012 August (8)
  • 2012 July (10)
  • 2012 June (8)
  • 2012 May (10)
  • 2012 April (7)
  • 2012 March (13)
  • 2012 February (10)
  • 2012 January (6)
  • 2011 December (10)
  • 2011 November (4)
  • 2011 October (6)
  • 2011 September (5)
  • 2011 August (9)
Home Web Mobile DataViz Server Wrappers Whitepapers Surveys Chrome Icenium Contact Us

Kendo UI framework is developed by Telerik - a leading provider of UI components for web, desktop and mobile applications. Trusted by over 100,000 customers worldwide for our devotion to quality and industry-best technical support, Telerik helps professionals maximize their productivity and "deliver more than expected" every day.

kendoui - powered by html5, css3 & jquery
get social
  • Twitter
  • Facebook
  • Google plus
  • RSS
Privacy Policy | Branding Guidelines
Powered by Sitefinity CMS

Copyright © 2011 - 2013 Telerik Inc. All rights reserved.