
Study front-end performance optimization for websites, covering HTML, CSS, JavaScript, images, and server basics, with a WordPress bonus and a live case study contrasting unoptimized and optimized implementations.
Explore how optimization speeds page load and browser performance by reducing HTTP requests, compressing resources, optimizing images, and understanding metrics like time to first byte and first meaningful paint.
Measure web performance with browser developer tools, using the network and performance tabs, throttling, and Page Speed Insights to analyze load times and frame rates.
Explore how HTTP evolved from 1.0/1.1 to HTTP/2, enabling cheaper requests, header compression, and split resource delivery, while SSL enables HTTP/2 in most browsers.
Learn how combining CSS and JavaScript reduces HTTP requests on HTTP/1.1, when to split files for media, print, or heavy resources, and how tools like gulp or grunt automate bundling.
Learn to set up gulp for front-end workflow by installing nodejs and gulp cli, creating a gulpfile, and building automated tasks for styles and scripts with watch.
Combine images to reduce requests with CSS sprites or a custom web font for icon glyphs. Note this is mainly for HTTP/1.1 and is covered later in image optimization chapter.
Reduce http requests by loading only the needed web fonts and weights, declaring font-face for essentials, removing unused variants, and avoid client-side redirects by using server-side redirects.
Reduce dom and css complexity to speed up page loading and rendering by shrinking the document, lowering dom nodes, and trimming css rules; use ::before and ::after to reduce markup.
Explore image optimization and the essential role of imagery for front-end developers, highlighting basic computer graphics knowledge, Photoshop use, and cutting out PSD elements to plan layout.
Learn how to select the right image file format for web use, comparing bitmap and vector formats (svg), jpeg lossy, png-24 vs png-8, gif, and webp, with optimization tips.
Evaluate image file formats for front-end performance, comparing SVG, PNG-24, PNG-8, GIF, and JPEG across icons, logos, and infographics, and consider gzipping and transparency for optimal choices.
Differentiate template images from content images and optimize both. Automate content image optimization in WordPress to balance quality and speed.
Identify which elements require images and replace icons with CSS, optimize files with SVG and PNG-8/PNG-24 or GIF formats, and deploy CSS sprites or icon fonts to reduce HTTP requests.
Optimize content images for speed by automating uploads, assigning predefined sizes and JPEG quality, and delivering images with responsive techniques such as srcset/sizes or art-directed picture elements, plus lazy loading.
Learn to optimize images for speed by selecting proper formats and sizes, using media queries for viewports, enabling lazy loading, and training editors to choose image size and format.
Bundle resources to reduce HTTP requests in HTTP/1.1, and selectively bundle for HTTP/2. Minify CSS to shrink sizes using gulp automation and SASS or LESS with built-in compression.
Plan css architecture by avoiding @import and using multiple link tags for parallel downloads, and adopt a mobile-first approach with core, desktop, and print styles.
Reduce CSS bloat by removing unused styles and leftovers, and review the codebase regularly. Minimize third-party resources such as Bootstrap and avoid over-specific selectors to speed up downloads and parsing.
Bundle and minify JavaScript assets to reduce HTTP requests and speed downloads, using uglifyJS or jsmin and configuring output with -o for HTTP/1.1 and HTTP/2 protocols.
Evaluate external resources by dividing them into frameworks and libraries, weighing performance overhead. Prefer pure JavaScript for simple tasks, load heavy dependencies only when needed, and avoid unnecessary third-party scripts.
Attach scripts at the end of the document to speed DOM construction. Use async and defer to optimize loading based on dependencies.
Improve page performance by optimizing how you query and manipulate DOM elements, caching references, and using document fragments to minimize reflows and repaints.
Improve front-end performance by attaching events high in the DOM, using event delegation, limiting listeners, and assigning unique elements directly; throttle and debounce for scroll, resize, and mousemove.
Identify legacy and unused functions and variables by scanning the codebase and removing orphaned calls. Avoid using eval() and remove unused code to reduce overhead and speed page loads.
Apply practical front-end performance tactics, from efficient looping and scope considerations to avoiding DOM changes inside loops. Leverage workers for background processing and production optimizations, while prioritizing readability and maintainability.
Learn how JavaScript boosts site speed by reducing scripts, bundling and ordering downloads, and refining DOM queries, event handling, and loop efficiency with pure JavaScript.
Preload fonts to control download order and reduce flash of unstyled text; use href, rel preload, as, type, and crossorigin attributes for reliable loading.
Identify your server type, from Apache, Nginx, or IIS, and learn optimization ideas you can implement with .htaccess, location blocks, or web.config transforms.
Enable gzip compression via Apache .htaccess or WordPress plugins to cut HTML, CSS, JS, fonts, and SVG sizes, and set expires headers to cache assets while preventing hotlinking.
Configure a cookieless domain or subdomain for static files to reduce cookie overhead and improve page speed, and supplement with a CDN and up-to-date server software.
Explore WordPress optimization techniques such as static html caching to reduce time to first byte, manage plugins, and clean the database with WP Optimize for better performance.
We all know how terrible experience is a slow service. Who likes to wait more than needed at the bar, in the shop queue, or in traffic? No one, of course. And it's no different with websites and any other web-based services: slow service is irritating. Even more, given that in today's world we want everything instantly.
Users will be unhappy, if your site will work slow - or at least slower than they expected. They will more likely go away and find better, lighter, quicker alternative to stop being frustrated and enjoy the service they need. But did you know, that slow sites will also rank lower in search engines?
The solution is not easy, as there are many areas on which the site's performance can gain or lose. However, there are tens of things you can do, and some of them are pretty easy.
Whether you recently finished the web developer course, or you're already developing for some time, this is the place where you will learn all the basic and intermediate methods to speed up the sites you create. Upon implementing the techniques presented in this course, you will be able to visibly boost your site's load time, and also - if your site is more complex - you will be able to make it work much faster within the browser.
I will show you how to boost your site's performance by:
reducing number of resources, their sizes, and complexity of your code
choosing proper image file formats and tuning their settings
optimizing placement of images on the page
optimizing your styles and scripts by doing the same things more efficiently
manipulating the order in which browsers download resources
configuring your server
Also, as a bonus, I prepared a couple of hints how to speed up your WordPress installation. And whenever the techniques mentioned in the course need CMS support, I show you how to implement them on a site powered by WordPress.
Well-optimized site will bring a number of gains. I mentioned happier users, more likely to stay on the site, and the boost in search engines, which will support SEO efforts.
But optimization will also bring savings in storage and bandwidth usage over the time. It will also save energy: well-optimized resources will need less energy to be sent between browser and server, and they will use less battery on the end user's devices. So it's more eco too, if you like to think this way.
But if you're rather selfish, there are benefits for you - personally:
your clients will be happier when you create for them fast websites,
your value as a web developer, capable of building efficient sites, will grow,
your salary or prices will likely grow.