Q51. How do you optimize fonts in Next.js?
Next.js includes the built-in **`next/font`** module, which automatically optimizes typography and removes external network requests for zero layout shift: ### Core Benef...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (188 available).
Next.js includes the built-in **`next/font`** module, which automatically optimizes typography and removes external network requests for zero layout shift: ### Core Benef...
By using the next/font package to optimize and load custom fonts. ```js import { Inter } from "next/font/google"; const inter = Inter({ subsets: ["latin"] }); export defa...
By adding a custom webpack configuration in next.config.js. ```js module.exports = { webpack: ( config, { buildId, dev, isServer, defaultLoaders, webpack } ) => { // Note...
By default, Next.js uses the high-performance Rust-based **SWC compiler**, which is up to 17x faster than Babel. However, if your project relies on legacy custom Babel pl...
**`next-env.d.ts`** is an auto-generated TypeScript declaration file placed at the root of a Next.js project. ### What It Does: It contains TypeScript reference directive...
**`next-compose-plugins`** was a popular community utility library used in older Next.js projects to cleanly chain and compose multiple configuration plugins in `next.con...
Next.js automatically provides polyfills for widely used modern ECMAScript features (such as `Promise`, `fetch`, `Object.assign`, `Symbol`, and `URL`) targeting browsers ...
**Automatic Static Optimization** is a core Next.js feature where the build system automatically analyzes each page to determine whether it can be pre-rendered as pure st...
By configuring i18n settings in next.config.js. ```js module.exports = { i18n: { locales: ["en", "fr"], defaultLocale: "en", }, }; ```
A development mode only feature for highlighting potential problems in an application. It helps to identify unsafe lifecycles, legacy API usage, and a number of other fea...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.