Javascript for Upgrading Websites

Javascript is one of the most commonly used languages on the web. It is a high-level and interpreted programming language. Most websites use Javascript and virtually every major modern web browser can interpret it. It is fast, flexible and easy to use. It provides a number of different user experiences that increase web functionality exponentially. Unity Data Systems is a custom web development firm that is expert at programming in Javascript. For that reason, leading companies are increasingly choosing Unity Data Systems for their custom development needs. The firm is trusted for its quality, expertise and outstanding value. It also has expertise in a number of other frequently used programming languages.

Continue reading Javascript for Upgrading Websites

Angular 2 Build Process

Last week I setup ludohenin’s inlineNg2Template in a gulp build in an effort to improve my app’s performance. I got some improvements but decided I needed to look at bundling the app for better gains. SystemJS-Builder is a package which will allow us to pre-compile the app into one file and hopefully see a big drop in load times.

Here’s where we’re at currently.

Requests Load Time Size
Orginal 404 5.31s 2.2Mb
Inline Templates 355 5.2s 2.1Mb

Continue reading Angular 2 Build Process

Angular 2 Inline Templates

Earlier when looking at versioning/cache busting I changed my templates from using the templateURL: ‘./template.html’ syntax to template: require(‘./template.html’).  The more time I spend building out pages on the site, the slower it’s getting. Today, we’re going to look at in-lining html templates in our javascript files as a build step.

This should reduce the amount of http requests and hopefully load time as well. To load the homepage, my site is making 404 http requests, transferring 2.2Mb of data, and takes 5.31s to load. I’d like to bring the initial page load time down to 1s or less if possible.

Continue reading Angular 2 Inline Templates

What’s New in Digital Marketing for 2016? What Polls from Businesses Indicate

The world of digital marketing has evolved to some interesting places in just the last few years. How this applies to web development has matured as well, especially in making digital marketing more personalized and targeted. Much of this gets accomplished now thanks to new advancements available for web design and various digital tools making marketing online much simpler. It also allows you to dig deeper into understanding what your customers really want.

Continue reading What’s New in Digital Marketing for 2016? What Polls from Businesses Indicate

Angular 2 SystemJS Cache Busting

Browser caching of files yields major performance benefits, reduced network usage, decreased load times etc.

One of the most annoying things is when you update some javascript and your users don’t see the changes because they have a cached version of the file.

Today we’re going to look at a simple way to achieve versioning in an angular 2 app using a query string parameter.

Continue reading Angular 2 SystemJS Cache Busting

Caching Angular 2 Web Service Results In Local Storage

In the last post we looked at how to make a permissions directive which checks specific roles against those assigned to a user.

Since we don’t want to hit a web service every time a permissions check is preformed, we’re going to cache the user’s permissions in local storage.

Continue reading Caching Angular 2 Web Service Results In Local Storage

Angular 2 User Permissions

I’ve been working on an Angular 2 app recently and needed the ability to hide/show content based on a user’s roles in the system.

I will walk through an example of how to build an angular 2 directive which takes in an array of roles, and calls a data service to match against what roles a user has. The directive will not render the components/html a user doesn’t have the right roles to access.

Continue reading Angular 2 User Permissions