In this article, we review captureDOM function in snapDOM codebase. This review is split into 2 parts. We will look at: embedCustomFonts collectUsedTagNames generateDedupedBaseCSS embedCustomFonts You will find the following code in modules/fon...
In this article, we review captureDOM function in snapDOM codebase. This review is split into 2 parts. We will look at: captureDOM overview options prepareClone function inlineImages function inlineBackgroundImages function captureDOM overvie...
In this article, we review cache.js file in snapDOM codebase. We will look at: cache initialization and resetCache function How is this cache applied in snapDOM codebase? cache initialization and resetCache function You will see the following at...
In this article, we review how you can check if the browser is Safari programmatically. We will look at: isSafari function navigator.userAgent isSafari function I found the following code in the snapdom/src/utils/helpers.js export function isSaf...
In this article, we review how to capture HTML elements to images using snapDOM. We will look at: What is snapDOM? How to capture image using snapDOM? Press enter or click to view image in full size What is snapDOM? snapDOM is a fast and accurat...