Web Development Archives - FrontEnd Masters /category/web-development/ FrontEnd Masters - Web Devlopment Book Fri, 24 Jul 2026 09:24:15 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.2 /wp-content/uploads/2020/09/cropped-FrontEndMasterLogo-1-150x150.jpg Web Development Archives - FrontEnd Masters /category/web-development/ 32 32 How to Build a High-Converting Dermatology Clinic Website: A Frontend Developer’s Guide /how-to-build-a-high-converting-dermatology-clinic-website-a-frontend-developers-guide/ Fri, 24 Jul 2026 09:24:15 +0000 /?p=398 Medical and aesthetic websites occupy a unique design space. Practices like Lumine Dermatology Clinic demonstrate what high-performing clinic sites look like — visitors arrive with real concerns, want answers fast, and need to trust what they see before they book anything. Procedures such as a Chemical Peel illustrate the challenge clearly: patients are comparing clinics, reading about recovery, assessing pricing, and deciding whether they trust a provider — all before making contact. For frontend developers tasked with building or redesigning a dermatology clinic’s website, the stakes are higher than most e-commerce or SaaS projects.
This guide walks through the core UX and frontend principles that separate high-performing dermatology sites from the rest.

Why Dermatology Sites Are a Different Challenge

Most web projects optimize for engagement or discovery. Dermatology clinic websites need to do something more specific: convert an anxious, research-heavy visitor into a booked appointment.
Patients spending time on a dermatology site are often:
Comparing multiple clinics at once
Reading about procedures they’ve never had before
Trying to understand pricing and expected results
Assessing whether they can trust the clinic
Every frontend decision — from page load speed to typography to how a service is explained — either supports or undermines that conversion.
The Trust Architecture

Dermatology websites live and die on trust. Your design system needs a deliberate “trust layer” built into every key page.
Credentials and accreditation should appear above the fold on the homepage and on every individual doctor’s profile. Boards, certifications, and years of experience aren’t just content — they’re conversion assets. Display them prominently, not buried in an “About” section.
Before-and-after galleries are one of the highest-value elements on any aesthetic clinic site. Frontend implementation matters here:
Use lazy loading to keep initial page weight manageable
Implement a side-by-side slider component for mobile — stacked… Read more “How to Build a High-Converting Dermatology Clinic Website: A Frontend Developer’s Guide”

The post How to Build a High-Converting Dermatology Clinic Website: A Frontend Developer’s Guide appeared first on FrontEnd Masters.

]]>
Lumine Dermatology Clinic demonstrate what high-performing clinic sites look like — visitors arrive with real concerns, want answers fast, and need to trust what they see before they book anything. Procedures such as a Chemical Peel illustrate the challenge clearly: patients are comparing clinics, reading about recovery, assessing pricing, and deciding whether they trust a provider — all before making contact. For frontend developers tasked with building or redesigning a dermatology clinic’s website, the stakes are higher than most e-commerce or SaaS projects. This guide walks through the core UX and frontend principles that separate high-performing dermatology sites from the rest. Why Dermatology Sites Are a Different Challenge Most web projects optimize for engagement or discovery. Dermatology clinic websites need to do something more specific: convert an anxious, research-heavy visitor into a booked appointment. Patients spending time on a dermatology site are often: Comparing multiple clinics at once Reading about procedures they’ve never had before Trying to understand pricing and expected results Assessing whether they can trust the clinic Every frontend decision — from page load speed to typography to how a service is explained — either supports or undermines that conversion. The Trust Architecture Dermatology websites live and die on trust. Your design system needs a deliberate “trust layer” built into every key page. Credentials and accreditation should appear above the fold on the homepage and on every individual doctor’s profile. Boards, certifications, and years of experience aren’t just content — they’re conversion assets. Display them prominently, not buried in an “About” section. Before-and-after galleries are one of the highest-value elements on any aesthetic clinic site. Frontend implementation matters here: Use lazy loading to keep initial page weight manageable Implement a side-by-side slider component for mobile — stacked… Read more “How to Build a High-Converting Dermatology Clinic Website: A Frontend Developer’s Guide”

The post How to Build a High-Converting Dermatology Clinic Website: A Frontend Developer’s Guide appeared first on FrontEnd Masters.

]]>
Digital Transformation in Luxury Real Estate /digital-transformation-in-luxury-real-estate/ Fri, 10 Apr 2026 11:15:18 +0000 /?p=369 The digital revolution has fundamentally changed how luxury property buyers search for homes. Today’s discerning clients expect seamless user experiences, fast load times, and intuitive interfaces when exploring high-end real estate listings. For luxury homes in Mexico, this means developers and marketers must apply the same frontend principles that define successful web applications—responsive design, accessibility, and performance optimization—to create compelling digital showrooms.
The bridge between frontend technology and luxury real estate is more direct than it appears. When potential buyers visit DreamProHomesLuxury, they’re evaluating not just the properties themselves, but the digital experience that presents them. A poorly designed website, no matter how stunning the homes, will cost sales. Conversely, a well-engineered frontend can elevate perceived value and build trust before a single property tour.

Frontend Excellence in Luxury Real Estate Presentation

The first impression of a luxury property happens on screen. Real estate websites must load instantly, display high-resolution images without lag, and adapt perfectly to any device. Modern frontend frameworks like React and Vue enable developers to build interactive property galleries that load image tiles progressively, reducing bounce rates. When searching for houses for sale in Mexico, buyers expect features that frontend developers have been perfecting for years: instant search filters, virtual tours with smooth animations, and responsive maps showing neighborhood amenities. The luxury market demands nothing less than enterprise-grade frontend performance.
Mobile-First Design for Global Buyers
Luxury real estate in Mexico attracts an international clientele. According to recent market analysis, over 70% of luxury property searches now occur on mobile devices. Frontend developers understand that mobile-first design isn’t optional—it’s essential. This means touch-friendly interfaces, optimized images for varying bandwidth conditions, and fast Time to Interactive (TTI) metrics. A buyer in Toronto scrolling through beachfront properties in Tulum shouldn’t experience lag or layout shifts. Implementing modern… Read more “Digital Transformation in Luxury Real Estate”

The post Digital Transformation in Luxury Real Estate appeared first on FrontEnd Masters.

]]>
DreamProHomesLuxury, they’re evaluating not just the properties themselves, but the digital experience that presents them. A poorly designed website, no matter how stunning the homes, will cost sales. Conversely, a well-engineered frontend can elevate perceived value and build trust before a single property tour. Frontend Excellence in Luxury Real Estate Presentation The first impression of a luxury property happens on screen. Real estate websites must load instantly, display high-resolution images without lag, and adapt perfectly to any device. Modern frontend frameworks like React and Vue enable developers to build interactive property galleries that load image tiles progressively, reducing bounce rates. When searching for houses for sale in Mexico, buyers expect features that frontend developers have been perfecting for years: instant search filters, virtual tours with smooth animations, and responsive maps showing neighborhood amenities. The luxury market demands nothing less than enterprise-grade frontend performance. Mobile-First Design for Global Buyers Luxury real estate in Mexico attracts an international clientele. According to recent market analysis, over 70% of luxury property searches now occur on mobile devices. Frontend developers understand that mobile-first design isn’t optional—it’s essential. This means touch-friendly interfaces, optimized images for varying bandwidth conditions, and fast Time to Interactive (TTI) metrics. A buyer in Toronto scrolling through beachfront properties in Tulum shouldn’t experience lag or layout shifts. Implementing modern… Read more “Digital Transformation in Luxury Real Estate”

The post Digital Transformation in Luxury Real Estate appeared first on FrontEnd Masters.

]]>
How to Outsource DevOps: A Complete Guide for Web Projects /how-to-outsource-devops-a-complete-guide-for-web-projects/ Tue, 24 Mar 2026 09:28:40 +0000 /?p=360 Web projects rarely fail because of one dramatic outage. They fail in smaller ways first. Deployments drag out. Hotfixes pile up. Staging drifts away from production. A simple feature release turns into a late-night event with too many people on call. That is usually the point where companies start looking for outside help. A good DevOps outsourcing guide can help narrow the field, and firms such as JOT Solutions may show up during that research stage, but the smart choice comes from checking how a partner handles delivery speed, reliability, testing, and day-to-day operating discipline. DORA’s long-running research and AWS’s DevOps guidance both point to the same theme: strong delivery performance comes from repeatable systems, not heroics.

Outsourcing DevOps for a web project means handing over part of your delivery engine. That includes infrastructure changes, CI/CD pipelines, environment management, observability, incident response, and security controls across the software lifecycle. It also means dealing with supply-chain risk, access control, and vendor accountability from the first week, not after the first scare. OWASP flags CI/CD pipelines as attractive attack targets, while NIST frames secure software practices and supplier communication as core parts of modern software operations.
Start With the Problem, Not the Vendor

 
Before you hire anyone, pin down what is actually slowing the project down. Many teams say they need “DevOps help” when the real issue is messy releases, weak testing, unclear ownership, or a cloud setup that grew without rules. DORA’s delivery model remains useful here because it keeps the focus on four practical signals: deployment frequency, lead time for changes, change failure rate, and time to restore service. Add reliability targets on top, and you get a clear picture of where the pressure sits. A partner can improve the system only if you can describe the bottleneck in… Read more “How to Outsource DevOps: A Complete Guide for Web Projects”

The post How to Outsource DevOps: A Complete Guide for Web Projects appeared first on FrontEnd Masters.

]]>
DevOps outsourcing guide can help narrow the field, and firms such as JOT Solutions may show up during that research stage, but the smart choice comes from checking how a partner handles delivery speed, reliability, testing, and day-to-day operating discipline. DORA’s long-running research and AWS’s DevOps guidance both point to the same theme: strong delivery performance comes from repeatable systems, not heroics. Outsourcing DevOps for a web project means handing over part of your delivery engine. That includes infrastructure changes, CI/CD pipelines, environment management, observability, incident response, and security controls across the software lifecycle. It also means dealing with supply-chain risk, access control, and vendor accountability from the first week, not after the first scare. OWASP flags CI/CD pipelines as attractive attack targets, while NIST frames secure software practices and supplier communication as core parts of modern software operations. Start With the Problem, Not the Vendor   Before you hire anyone, pin down what is actually slowing the project down. Many teams say they need “DevOps help” when the real issue is messy releases, weak testing, unclear ownership, or a cloud setup that grew without rules. DORA’s delivery model remains useful here because it keeps the focus on four practical signals: deployment frequency, lead time for changes, change failure rate, and time to restore service. Add reliability targets on top, and you get a clear picture of where the pressure sits. A partner can improve the system only if you can describe the bottleneck in… Read more “How to Outsource DevOps: A Complete Guide for Web Projects”

The post How to Outsource DevOps: A Complete Guide for Web Projects appeared first on FrontEnd Masters.

]]>
6 Reasons Why Your Web Development Team Needs to Move to the Cloud Now /6-reasons-why-your-web-development-team-needs-to-move-to-the-cloud-now/ Fri, 29 Nov 2024 18:37:54 +0000 /?p=318 Building and deploying large-scale networks is a demanding process. From ensuring proper equipment sizing and implementing robust security to guaranteeing reliable wireless coverage, the stakes are high. Fortunately, Stratus Infosystems specializes in designing and deploying large-scale networks built for success. Whether your team is managing the network in-house or through Managed Services, Stratus tailors its approach to meet your unique needs. For a closer look, go to their homepage to see how they can help transform your network.

The drive for efficiency, adaptability, and scalability is more critical than ever in web development, and the cloud has become the ultimate tool to help teams meet these demands. If your team hasn’t yet made the shift, here are six compelling reasons why it’s time to move your web development operations to the cloud now.
Enhanced Collaboration and Productivity

Moving to the cloud fosters seamless collaboration, especially for teams working remotely or spread across multiple locations. With all resources accessible online, team members can share files, updates, and feedback in real time, eliminating the delay and miscommunication that can arise with traditional, on-premises solutions. Developers, designers, and project managers can work from a unified source, significantly speeding up workflows. Cloud-based tools like AWS, Google Cloud, or Microsoft Azure also provide intuitive collaboration features, allowing for smoother project handoffs and enhancing overall productivity.
Scalability Without Limitations
A key advantage of cloud-based infrastructure is its scalability. Unlike physical servers, which can quickly reach capacity limits, cloud services offer virtually unlimited resources. This is especially beneficial when handling large-scale projects or experiencing a sudden spike in demand. Your web development team can easily scale resources up or down based on current needs, preventing unnecessary expenditures on infrastructure that might only be used periodically. Additionally, many cloud providers offer automated scaling options, so your applications always… Read more “6 Reasons Why Your Web Development Team Needs to Move to the Cloud Now”

The post 6 Reasons Why Your Web Development Team Needs to Move to the Cloud Now appeared first on FrontEnd Masters.

]]>
homepage to see how they can help transform your network. The drive for efficiency, adaptability, and scalability is more critical than ever in web development, and the cloud has become the ultimate tool to help teams meet these demands. If your team hasn’t yet made the shift, here are six compelling reasons why it’s time to move your web development operations to the cloud now. Enhanced Collaboration and Productivity Moving to the cloud fosters seamless collaboration, especially for teams working remotely or spread across multiple locations. With all resources accessible online, team members can share files, updates, and feedback in real time, eliminating the delay and miscommunication that can arise with traditional, on-premises solutions. Developers, designers, and project managers can work from a unified source, significantly speeding up workflows. Cloud-based tools like AWS, Google Cloud, or Microsoft Azure also provide intuitive collaboration features, allowing for smoother project handoffs and enhancing overall productivity. Scalability Without Limitations A key advantage of cloud-based infrastructure is its scalability. Unlike physical servers, which can quickly reach capacity limits, cloud services offer virtually unlimited resources. This is especially beneficial when handling large-scale projects or experiencing a sudden spike in demand. Your web development team can easily scale resources up or down based on current needs, preventing unnecessary expenditures on infrastructure that might only be used periodically. Additionally, many cloud providers offer automated scaling options, so your applications always… Read more “6 Reasons Why Your Web Development Team Needs to Move to the Cloud Now”

The post 6 Reasons Why Your Web Development Team Needs to Move to the Cloud Now appeared first on FrontEnd Masters.

]]>
Web Developer Salaries: Agency vs. Company vs. Freelance /web-developer-salaries-agency-vs-company-vs-freelance/ Thu, 07 Dec 2023 23:14:25 +0000 /?p=272 In the dynamic landscape of web development, professionals have diverse career paths, each with its own set of advantages and drawbacks. One crucial aspect that significantly influences a web developer’s earning potential is the type of employment: working at an agency, within a company, or as a freelancer. Understanding the nuances of web developer salaries in these three domains can help aspiring developers make informed career decisions. For those interested in generating professional paystubs as freelancers, tools like PayStubCreator can be valuable for managing financial documentation. Read more by clicking the link!

Agency Life

Working at a web development agency often means being part of a dynamic, collaborative team. Agencies frequently engage in a variety of projects for diverse clients, offering developers exposure to various technologies and industries. Salaries in agencies tend to be competitive, reflecting the need for specialized skills and the fast-paced nature of the work. Junior developers may find agencies an ideal environment to kickstart their careers, gaining valuable experience while earning a decent income. However, the workload can be demanding, with tight deadlines and a constant need to stay updated on the latest trends.
Corporate Stability
Web developers employed by companies benefit from the stability and structured environment that corporations provide. These positions often come with comprehensive benefits, including health insurance, retirement plans, and sometimes even stock options. Salaries for in-house developers can vary based on the industry and the geographical location of the company. While the work environment may be more predictable compared to agencies, some developers may find the corporate hierarchy limiting in terms of creativity and flexibility. Nonetheless, for those seeking a steady income and a defined career path, working for a company can be a rewarding choice.
Freelance Freedom
Freelancing has become an increasingly popular choice for web developers seeking autonomy and… Read more “Web Developer Salaries: Agency vs. Company vs. Freelance”

The post Web Developer Salaries: Agency vs. Company vs. Freelance appeared first on FrontEnd Masters.

]]>
Read more by clicking the link! Agency Life Working at a web development agency often means being part of a dynamic, collaborative team. Agencies frequently engage in a variety of projects for diverse clients, offering developers exposure to various technologies and industries. Salaries in agencies tend to be competitive, reflecting the need for specialized skills and the fast-paced nature of the work. Junior developers may find agencies an ideal environment to kickstart their careers, gaining valuable experience while earning a decent income. However, the workload can be demanding, with tight deadlines and a constant need to stay updated on the latest trends. Corporate Stability Web developers employed by companies benefit from the stability and structured environment that corporations provide. These positions often come with comprehensive benefits, including health insurance, retirement plans, and sometimes even stock options. Salaries for in-house developers can vary based on the industry and the geographical location of the company. While the work environment may be more predictable compared to agencies, some developers may find the corporate hierarchy limiting in terms of creativity and flexibility. Nonetheless, for those seeking a steady income and a defined career path, working for a company can be a rewarding choice. Freelance Freedom Freelancing has become an increasingly popular choice for web developers seeking autonomy and… Read more “Web Developer Salaries: Agency vs. Company vs. Freelance”

The post Web Developer Salaries: Agency vs. Company vs. Freelance appeared first on FrontEnd Masters.

]]>
Benefits of an Online Appointment Management System in the Healthcare Industry /benefits-of-an-online-appointment-management-system-in-the-healthcare-industry/ Tue, 28 Sep 2021 05:33:16 +0000 /?p=134 With the penetration of technology to every service industry and sector of the economy, customers and clients are expecting convenient and streamlined services. By clicking a button or tapping a screen, they are able to get a particular service or product.
Healthcare providers have not been exempted from this expectation. And as things stand, many facilities are going the extra mile to have an online doctor appointment scheduling installed. If you haven’t gotten such a system installed, you are missing out on several benefits.
In this article, we seek to describe the benefits that healthcare providers can get once they have an online appointment management system in place. You can also visit Contract Diagnostics site for more information about physician contracts.

A boost in patient numbers

As we described earlier, we are in the era of convenience and comfort. From experience and view of the market, clients are becoming less and less inclined to make phone calls to a service provider. They prefer to use websites or applications to make inquiries or, in this case, book an appointment.
With an appointment management system in place, a medical facility is empowering clients to book appointments on their own.
Reducing no-shows and empty slots

Another crucial feature in appointment management platforms is their reminder system. Patients are typically required to fill in their contact information. As the day of the appointment comes nearer, the system automatically sends out reminders to the clients. This keeps them conscious of their commitment to D-Day.
In case of any cancellations, the patient can easily make the changes in the system. The system also keeps an emergency waiting list. In case of any open slot, the system alerts the administration staff, who will be able to make the final decision on it.
No-shows and empty appointments have… Read more “Benefits of an Online Appointment Management System in the Healthcare Industry”

The post Benefits of an Online Appointment Management System in the Healthcare Industry appeared first on FrontEnd Masters.

]]>
online doctor appointment scheduling installed. If you haven’t gotten such a system installed, you are missing out on several benefits. In this article, we seek to describe the benefits that healthcare providers can get once they have an online appointment management system in place. You can also visit Contract Diagnostics site for more information about physician contracts. A boost in patient numbers As we described earlier, we are in the era of convenience and comfort. From experience and view of the market, clients are becoming less and less inclined to make phone calls to a service provider. They prefer to use websites or applications to make inquiries or, in this case, book an appointment. With an appointment management system in place, a medical facility is empowering clients to book appointments on their own. Reducing no-shows and empty slots Another crucial feature in appointment management platforms is their reminder system. Patients are typically required to fill in their contact information. As the day of the appointment comes nearer, the system automatically sends out reminders to the clients. This keeps them conscious of their commitment to D-Day. In case of any cancellations, the patient can easily make the changes in the system. The system also keeps an emergency waiting list. In case of any open slot, the system alerts the administration staff, who will be able to make the final decision on it. No-shows and empty appointments have… Read more “Benefits of an Online Appointment Management System in the Healthcare Industry”

The post Benefits of an Online Appointment Management System in the Healthcare Industry appeared first on FrontEnd Masters.

]]>
The Story of CSS Grid /the-story-of-css-grid/ Thu, 22 Oct 2020 03:09:11 +0000 /?p=67 CSS grid layout or CSS grid is a method that was built to make the work of web developers easy. It allows web developers to create simpler layouts that are easy to make and understand across different browsers. There are many other methods that allows user to control the web page layout but none of them has the ease and consistency as the CSS grid. It has made the life of web developers a lot easier. Even though the CSS grid is only a recommendation but it is still being used by majority of the browsers. If we compare this method of aligning the web page with other methods it is a lot more useful because with the help of CSS grid you can create more asymmetrical layouts. The major thing that all web developers need is the access to run a layout across browser and that is what CSS grid does. It allows users to create better layouts and gives more standardized codes that work across browsers. It makes the work of web developers a lot easier and better. The other method similar to CSS grid is CSS float but in that method you have to use float and positioning which makes it harder and complex but in CSS  grid system there are rows and columns which makes it less complex to design web pages without having to use float and positioning.
Story of CSS grid

The CSS grid was implemented by Microsoft Edge on October 17th 2017. It was a major thing because now all the major browsers support this incredible layout. In the beginning this layout technique was not created for web designing, it was created just to create a view of the document on the screen but later as people got to know about the uses… Read more “The Story of CSS Grid”

The post The Story of CSS Grid appeared first on FrontEnd Masters.

]]>
CSS grid layout or CSS grid is a method that was built to make the work of web developers easy. It allows web developers to create simpler layouts that are easy to make and understand across different browsers. There are many other methods that allows user to control the web page layout but none of them has the ease and consistency as the CSS grid. It has made the life of web developers a lot easier. Even though the CSS grid is only a recommendation but it is still being used by majority of the browsers. If we compare this method of aligning the web page with other methods it is a lot more useful because with the help of CSS grid you can create more asymmetrical layouts. The major thing that all web developers need is the access to run a layout across browser and that is what CSS grid does. It allows users to create better layouts and gives more standardized codes that work across browsers. It makes the work of web developers a lot easier and better. The other method similar to CSS grid is CSS float but in that method you have to use float and positioning which makes it harder and complex but in CSS  grid system there are rows and columns which makes it less complex to design web pages without having to use float and positioning. Story of CSS grid The CSS grid was implemented by Microsoft Edge on October 17th 2017. It was a major thing because now all the major browsers support this incredible layout. In the beginning this layout technique was not created for web designing, it was created just to create a view of the document on the screen but later as people got to know about the uses… Read more “The Story of CSS Grid”

The post The Story of CSS Grid appeared first on FrontEnd Masters.

]]>
How to build an Asset Pipeline with Gulpjs for any WebApp /how-to-build-an-asset-pipeline-with-gulpjs-for-any-webapp/ Fri, 11 Sep 2020 07:46:40 +0000 /?p=58 Asset Pipeline has become popular thanks to Ruby on Rails which implements it nicely out of the box. In this post I will explain what an asset pipeline is, how you can easily implement it without using Ruby on Rails and why you should consider using it in building a webapp.
What is Asset Pipeline?

Asset Pipeline is the name given to the way we serve static files to web applications. An asset pipeline can do many things to our files before they are served. Below are the most important and most used actions we can perform on static files.
Javascript

Concatenate many JS files into one;
Compress;
Uglify;
Minify;
Compile CoffeeScript into JS.

Stylesheets:

Compile SASS into CSS files;
Concatenate files;
Minify;

Images:

Optimize;

There are many ways to implement the tasks above. You could perform these tasks manually whenever you change any file (which is not a good idea) or you can use task runners to automate them, such as Grunt or Gulp.
Implementing an Asset Pipeline in Gulp JS
As I mentioned above, Gulp is a task runner and it can automate many things for you. In this post I’m going to use it to automate the necessary tasks to build an asset pipeline.
The complete code can be found here. In order to run it in your machine I recommend you to git clone the project and install the dependencies by running:
$ npm install

* Assuming you have node.js installed
Now let’s take a look at gulpfile.js. This is the most important file in Gulp, where everything is defined.
We start off by declaring all the plugins we’re going to use in our tasks. There are plenty of plugins available for almost any task you need.
var gulp = require('gulp'),
coffee = require('gulp-coffee'),… Read more “How to build an Asset Pipeline with Gulpjs for any WebApp”

The post How to build an Asset Pipeline with Gulpjs for any WebApp appeared first on FrontEnd Masters.

]]>
building a webapp. What is Asset Pipeline? Asset Pipeline is the name given to the way we serve static files to web applications. An asset pipeline can do many things to our files before they are served. Below are the most important and most used actions we can perform on static files. Javascript Concatenate many JS files into one; Compress; Uglify; Minify; Compile CoffeeScript into JS. Stylesheets: Compile SASS into CSS files; Concatenate files; Minify; Images: Optimize; There are many ways to implement the tasks above. You could perform these tasks manually whenever you change any file (which is not a good idea) or you can use task runners to automate them, such as Grunt or Gulp. Implementing an Asset Pipeline in Gulp JS As I mentioned above, Gulp is a task runner and it can automate many things for you. In this post I’m going to use it to automate the necessary tasks to build an asset pipeline. The complete code can be found here. In order to run it in your machine I recommend you to git clone the project and install the dependencies by running: $ npm install * Assuming you have node.js installed Now let’s take a look at gulpfile.js. This is the most important file in Gulp, where everything is defined. We start off by declaring all the plugins we’re going to use in our tasks. There are plenty of plugins available for almost any task you need. var gulp = require('gulp'), coffee = require('gulp-coffee'),… Read more “How to build an Asset Pipeline with Gulpjs for any WebApp”

The post How to build an Asset Pipeline with Gulpjs for any WebApp appeared first on FrontEnd Masters.

]]>
HTML5 pushState and Single-Page apps /html5-pushstate-and-single-page-apps/ Thu, 10 Sep 2020 08:19:48 +0000 /?p=21 Imagine the situation where you have a single-page app. You start playing around with it and after some actions you decide to click the back button from the browser to go back to a previous state.
Do you think your app is prepared for it?
Dealing with browser history can be a headache specially if your app rely on Ajax calls or you have a single page app. Users love using the back button and developers hate it.
The problem with the browser history in Single-Page applications is that the browser is not able to keep track of the states of your application, differently than the traditional multi-page app where every state is usually bound to a different URL.
So what can we do to let users use the back button and at the same time make sure your application won’t break?

If your app uses hashbang #! in the URLs for each state, like twitter used to (http://twitter.com/#!/roshiro), you can restore the previous state with some lines of codes in Javascript. However, hashbangs is not a standard to solve the browser history issue.

That’s where HTML5’s pushState comes in.
Check out a simple example to see how to use pushState feature.
Suppose you have an application to control your restaurant, the code below is the menu. For every plate you click on, its name will be displayed, the URL will be changed and we will store the state of that URL in the browser history.
restaurant_menu.html
<ul>
<li><a onclick="burger()">Burger</a></li>
<li><a onclick="sandwich()">Sandwich</a></li>
<li><a onclick="fries()">Fries</a></li>
</ul>
<div id="chosen_plate"></div>

pushState.js
function burger() {
// URL will change to /plate/burger
history.pushState( {
plate_id: 1,
plate: "Burger"
}, null, "/plate/burger");

showPlate("Burger");
}

function sandwich() {
// URL will change to /plate/sandwich
history.pushState( {
plate_id: 2,
plate: "Sandwich"
}, null, "/plate/sandwich");

showPlate("Sandwich");
}

function fries()… Read more “HTML5 pushState and Single-Page apps”

The post HTML5 pushState and Single-Page apps appeared first on FrontEnd Masters.

]]>
Read more “HTML5 pushState and Single-Page apps”

The post HTML5 pushState and Single-Page apps appeared first on FrontEnd Masters.

]]>