Best of DOM2021

  1. 1
    Article
    Avatar of devtoDEV·5y

    JavaScript loading techniques & Performance

    In this blog post, we will go through the techniques to include external script files to your HTML and look at how this can affect the performance. We will compare which technique is preferable and efficient over others in varying situations. This blog post assumes you are familiar with basic HTML, CSS and JavaScript syntax.

  2. 2
    Article
    Avatar of devtoDEV·5y

    Why choose React for frontend?

    React is an efficient, declarative, and flexible open-source JavaScript library for building simple, fast, and scalable frontends of web applications. It is a stronger framework because of its ability to break down the complex interface and allow users to work on individual components. Currently React is used by many fortune 500 companies including Airbnb, Tesla, Tencent QQ, and Walmart.

  3. 3
    Article
    Avatar of chromeChrome Developers·5y

    CSS Grid tooling in DevTools

    Chrome DevTools and Edge DevTools are adding CSS Grid tooling. The tooling was a joint effort between Chrome and Edge teams. It will help developers achieve better responsive design without complicated alignment hacks or JavaScript-assisted layout. There are three main features for CSS Grid:Grid-specific, persistent overlay that helps with dimensional and ordering information Badges in the DOM Tree that highlight CSS Grid containers and toggle Grid overlays.

  4. 4
    Article
    Avatar of newstackThe New Stack·5y

    All About Svelte, the Much-Loved, State-Driven Web Framework – The New Stack

    Svelte is an open source web user interface framework for defining a web interface with components. It is implemented as a compiler, written in TypeScript, and is designed to do as much of the work as it can at build time, rather than in the browser. The framework is being used by a range of companies, including Apple and Spotify.

  5. 5
    Article
    Avatar of jsPlainEnglishJavaScript in Plain English·5y

    What is the ‘useLayoutEffect’ Hook and When Do You Use It?

    The use layoutEffect hook runs synchronously directly after React calculates the DOM changes but before it paints those changes to the screen. The biggest reason for using useLayoutEffect is when the code that is being run directly modifies the DOM in a way that is observable to the user. In general, it is best to always use useEffect.

  6. 6
    Article
    Avatar of hashnodeHashnode·5y

    React isn't fast, let's learn why

    ReactJS was created in a way that just re-renders the entire component to deal with data inconsistency after any update to the state in the component or its child. Virtual DOM is a DOM-like structure that can be updated easily as changes in this virtual DOM aren't tied to a browser screen that also needs to be updated.

  7. 7
    Article
    Avatar of logrocketLogRocket·4y

    Underrated React Hooks you’re missing out on

    React Hooks allow us to use function components throughout projects to build both small and large applications. In React, data is passed from parent to child components via props, known as unidirectional data flow. The useImperativeHandle Hook allows us to expose a value, state, or function inside a child component to the parent component through ref. We’ll explore their use cases, syntax, and a few code examples.

  8. 8
    Article
    Avatar of devtoDEV·5y

    Optimizing React App Performance

    React is a great library that allows you to write applications declaratively. It abstracts away all the functional and internal details on how the library achieves a specific UI state. This is achieved by keeping a Virtual DOM and the process of reconciliation. React relies on the Virtual DOM to efficiently render only the components that have been updated.

  9. 9
    Article
    Avatar of ossOpen Source Way·5y

    Write your first web component | Opensource.com

    Web components are a collection of open source technologies such as JavaScript and HTML. They allow you to create custom elements that you can use and reuse in web apps. The components you create are independent of the rest of your code, so they're easy to reuse across many projects.

  10. 10
    Article
    Avatar of logrocketLogRocket·4y

    Introduction to Svelte Actions

    Svelte actions are one of the less commonly used features. An action allows you to run a function when an element is added to the DOM. They can greatly simplify your code and allow you to reuse bits of logic. In this post, I’ll give two examples where a Svelte action would be useful and show why an action is the right tool for the job.

  11. 11
    Article
    Avatar of ionicIonic Blog·5y

    Announcing Stencil v2.10

    Stencil v2.10 is now available. New features include greater control over the shadow DOM, a fix that results in fewer render cycles, and support for TypeScript 4.3. We’re really excited about all of these new improvements and look forward to seeing what you build with Stencil.

  12. 12
    Article
    Avatar of devdojoDevDojo·5y

    Understanding the React useRef() Hook

    Use the useRef() function to access the DOM in a new way. Use the useEffect function to add a new line to the bottom of the page. The useState() function is used to add the new line. The ref() function returns a new DOM element that can be used to access a previous DOM element.

  13. 13
    Article
    Avatar of bitBits and Pieces·5y

    JavaScript Sanitizer API: The Modern Way to Safe DOM Manipulation

    The HTML Sanitizer API was first announced in a draft specification in early 2021. It gives native browser support for removing malicious code from dynamically updated markup. The main feature of this API is to accept and convert strings into safer ones. Shifting sanitization to the browser makes it more convenient, secure, and faster.

  14. 14
    Article
    Avatar of chromeChrome Developers·4y

    Full accessibility tree in Chrome DevTools

    Chrome DevTools is launching a full accessibility tree making it easier for developers to get an overview of the whole tree. In this post find out how this tree is created and how to use it in your work. In Chrome DevTools, we provide the accessibility pane to help developers understand how their content is exposed to assistive technology.

  15. 15
    Article
    Avatar of itnextITNEXT·5y

    Creating HTML DOM elements using JavaScript (vanilla JS and jQuery examples)

    Creating HTML DOM elements using JavaScript (vanilla JS and jQuery examples) Ihechikara Vincent Abba Follow Aug 19 19 · 2 min read ARTICLE. So on Unsplash has some helpful methods that allow us create HTML elements. This is important in cases where we do not want to hard-code the markup but rather generate them dynamically when certain events happen in the browser. This can be done using vanilla (plain) JavaScript or using the master of browser compatibilty — jQuery.