current location:Home > Technical Articles > Web Front-end

  • Filtering and Chaining in Functional JavaScript
    Filtering and Chaining in Functional JavaScript
    The versatility of JavaScript: Object-oriented, imperative and functional programming What makes JavaScript powerful is its versatility, which supports object-oriented programming, imperative programming, and functional programming. Developers can flexibly switch programming paradigms according to project needs and team preferences. ES5 introduces native array methods such as map, reduce and filter, which greatly facilitates functional programming. Among them, the filter method can iterate through each element in the array and determine whether to add it to the new array based on the specified test conditions. Use filter method to simplify the code The filter method makes the code more concise and clear. It iterates over each element in the array and
    JS Tutorial 1110 2025-02-17 11:34:11
  • How We Built EQCSS & Why You Should Try Building Your Own Polyfills Too
    How We Built EQCSS & Why You Should Try Building Your Own Polyfills Too
    This article explores Element Query CSS (EQCSS), a CSS extension enabling responsive design based on element conditions rather than viewport conditions. The author details their journey creating EQCSS, highlighting its benefits and challenges. Key
    JS Tutorial 836 2025-02-17 11:33:11
  • 10 jQuery Panorama Image Display Plugins
    10 jQuery Panorama Image Display Plugins
    Ten excellent jQuery panoramic image display plug-ins to help you create an attractive website! This article will introduce ten powerful jQuery plug-ins to allow developers to easily create interactive 360-degree panoramic images on their websites. These plugins include Threesixtyslider, Paver, jQuery Spherical Panorama Viewer, jQuery Virtual Tour, SpriteSpin, Pano, Panorama 360° jQuery Plugin, jQuery Image Cube, Cyclotron, and jQuery Simple Panoram
    JS Tutorial 305 2025-02-17 11:31:08
  • Optimizing Web Fonts for Performance: the State of the Art
    Optimizing Web Fonts for Performance: the State of the Art
    This article is a SiteGround partnership contribution. Thank you for supporting our sponsors. Sixty-seven percent of websites now utilize custom web fonts. This widespread adoption, however, presents performance and user experience challenges. Thi
    CSS Tutorial 479 2025-02-17 11:28:11
  • An Alternative to Regular Expressions: apg-exp
    An Alternative to Regular Expressions: apg-exp
    This article was peer-reviewed by Sebastian Seitz and Almir Bijedic. Thanks to all the peer reviewers at SitePoint for getting SitePoint content to its best! Almost every programmer will need to use regular expressions in some form from time to time. For many, pattern grammar may seem mysterious and daunting. This tutorial will introduce a new pattern matching engine apg-exp - a feature-rich alternative to RegExp, which uses ABNF pattern syntax and is easier to read. Key Points apg-exp provides a user-friendly alternative to regular expressions, using ABNF syntax for those who are not familiar with tradition
    JS Tutorial 1056 2025-02-17 11:25:18
  • Life after JavaScript: The Benefits of Learning a 2nd Language
    Life after JavaScript: The Benefits of Learning a 2nd Language
    This article explores the benefits of learning a second programming language after mastering JavaScript, focusing on broadening perspectives and enhancing skills. A survey reveals that a significant portion of developers are already proficient in mu
    JS Tutorial 576 2025-02-17 11:20:13
  • Function Composition: Building Blocks for Maintainable Code
    Function Composition: Building Blocks for Maintainable Code
    JavaScript function combination: build more maintainable code JavaScript function combination is a technique of combining multiple simple functions into a single more complex function that performs subfunction operations on a given data in logical order. The order in which functions are applied produces different results. To write maintainable code, it is crucial to understand the return type of each combined function to ensure that the next function can handle it correctly. JavaScript does not prevent the combination from returning functions of inappropriate types, so this part of the responsibility falls on the programmer. For those who are not familiar with the functional programming paradigm, combining functions can make the code seem complicated. However, with the advent of ES2015 syntax, use arrow letters
    JS Tutorial 800 2025-02-17 11:19:09
  • Redux without React
    Redux without React
    This article was peer-reviewed by Vildan Softic. Thanks to all the peer reviewers at SitePoint for making SitePoint’s content perfect! I'm the kind of developer who likes to start from scratch and understand how everything works. While I know this brings myself an (unnecessary) workload, it does help me appreciate and understand the mechanisms behind a specific framework, library, or module. Recently, I've experienced another moment and started developing a web application using Redux and pure JavaScript. In this article, I want to outline my application structure, examine my early (finally failed) iterations, and then look at the solution I finally chose and what I learned along the way. Key Points
    JS Tutorial 682 2025-02-17 11:09:13
  • Cache Fetched AJAX Requests Locally: Wrapping the Fetch API
    Cache Fetched AJAX Requests Locally: Wrapping the Fetch API
    This article is written by invited author Peter Bengtsson. SitePoint's special guest post is designed to bring you great content from well-known writers and speakers in the JavaScript community This article demonstrates how to implement a local cache of fetched requests so that if executed repeatedly, it will be read from the session store. The benefit of this is that you don't need to write custom code for every resource you want to cache. If you want to show off your next JavaScript party and show off your various skills in handling Promise, state-of-the-art APIs, and local storage, read on. Main gains With the Fetch API, developers can create local caches of AJAX requests by reducing redundancy
    JS Tutorial 564 2025-02-17 11:06:10
  • Managing State in Angular 2 Apps with ngrx/store
    Managing State in Angular 2 Apps with ngrx/store
    Managing Application State in Angular 2 with ngrx/store: A Comprehensive Guide This article explores effective state management in Angular 2 applications using the ngrx/store library, a Redux implementation leveraging RxJS. We'll address the challen
    JS Tutorial 688 2025-02-17 11:05:15
  • 6 Free Material Design CSS Frameworks for 2017 Compared
    6 Free Material Design CSS Frameworks for 2017 Compared
    Google's Material Design: A Deep Dive into CSS Frameworks Key Considerations: Since its 2014 debut, Google's Material Design has become a dominant design language across numerous Google products and beyond. Web developers can leverage its aesthetic
    CSS Tutorial 917 2025-02-17 11:04:13
  • Building a JavaScript 3D Minecraft Editor
    Building a JavaScript 3D Minecraft Editor
    This article explores building a rudimentary 3D Minecraft-style world using only CSS transformations, HTML, and JavaScript, avoiding complex 3D programming. The author leverages their existing CSS knowledge, highlighting how concepts like z-index, l
    JS Tutorial 986 2025-02-17 10:55:10
  • Quick Tip: What Are Factory Functions in JavaScript
    Quick Tip: What Are Factory Functions in JavaScript
    JavaScript factory functions: Powerful pattern for building composable objects A JavaScript factory function is a function that returns an object and creates multiple similar objects without using the new or this keyword. This article will explore several uses of factory functions, including parametric factory functions, composable factory functions, asynchronous factory functions, and advanced factory functions, showing how to use them to build more flexible and easier to maintain JavaScript code. Core concept Factory function: Returns the function of the object. Parameterized factory function: The factory function that accepts parameters to change the return object structure. Composable factory functions: the work of building complex objects by combining other factory functions
    JS Tutorial 712 2025-02-17 10:54:13
  • Building a Facebook Chat Bot with Node and Heroku
    Building a Facebook Chat Bot with Node and Heroku
    Build a Facebook chatbot using Node.js and Heroku, peer-reviewed by Joan Yin and Camilo Reyes. Thanks to all SitePoint peer reviewers for getting SitePoint content to its best! At last year’s f8 conference, Facebook launched the Messenger platform, enabling developers to create bots that can talk to people on Messenger or Facebook pages. With robots, application owners can better interact with users by providing personalized and interactive communication that can
    JS Tutorial 851 2025-02-17 10:52:14
  • Introduction to Developing jQuery Plugins
    Introduction to Developing jQuery Plugins
    jQuery plug-in: a powerful tool to improve development efficiency This article will explore the development of jQuery plug-ins in depth, explain its advantages and guide you to create your own plug-ins step by step. jQuery plug-in can significantly reduce development time and improve code reuse. Just write function code once and you can reuse it in multiple projects, greatly improving development efficiency. We will use a sample plugin called fancytoggle as an example to demonstrate various links of plug-in development. This plug-in is used to toggle the visibility of nested elements, such as list items, to create interactive components similar to the accordion, such as the FAQ section. You can visit CodePen to view the fancytoggle plugin
    JS Tutorial 579 2025-02-17 10:50:13

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28