By the end of this course, you'll be confident in dynamically improving the performance of your app.
About the Author
Ben Fhala discovered his passion for data visualization six years ago while he was working at Parsons in New York, in their data visualization department PIIM. He is the owner of the online video training school and an Adobe ACP. He enjoys spending most of his time learning and teaching, and has a love for visual programming and visualization in general. Ben has had the honour of developing applications for US Congress members, Prime Ministers, and Presidents around the world. He has built many interactive experiences for companies such as Target, AT&T, Crayola, Marriott, Neutrogena, and Nokia. He has technically directed many award-winning projects and has been a part of teams that have won three Agency of the Year awards.
The problem with the caching mechanism is that it is complicated to make changes to our code. In this video, we will together create a solution that will work around this problem, making our code robust.
At times, you might have too many strings to concatenate. One of the effective ways to do so is by using arrays. We will see why and how it works in this video.
We'll take a deeper look into eval and try to avoid it by using a different method to call the function.
Using eval can lead to some security issues. We'll see how to create a function without using eval dynamically.
One of the most important rules when it comes to effective code is the simplicity of your code. Let's take a look at how we can simplify our code and start with loops and events.
We can improve our performance further by reducing the footprint of various loops. We'll do it by resetting our functions.
Memory leak is one of the many things you would really want to avoid to improve an app's performance. The most common places where you find them are inside loops and the structures of arrays. We will figure out a way to find and avoid memory leaks.
Doing more with less is probably the most important aspect of building an application. We'll see how we can write effective code by avoiding the unnecessary code.
More intervals mean more things going on at the same time, which leads to a higher chance of memory leaks. You will learn how to reduce your interval footprint.
The less the time for which you interact with the DOM, the better. Each manipulation forcesthe screen to refresh, and as such we wish to avoid making DOM calls as much as we can. We will improve DOM multiplication.
Finding a balance between animation and performance is a major task and we will see how exactly we can do this.
Working with HTML collections directly can create a memory leak. We will discuss why this is so and how to avoid it.
Profiling help us understand what is happening under the hood of our application. These tools help you get a better understanding of the code behind the hood and its effects on the CPU, memory distribution, and object allocation over time.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.