How to optimize image loading? What HTML attributes and elements are used for this?
Middle+
110
How to optimize image loading? What HTML attributes and elements are used for this?
Tell us about the critical rendering path in the browser: what happens after opening a page or entering a URL?
For a code fragment with synchronous code, setTimeout, and Promise, determine the order of output in the console, explaining the macro- and microtask queues.
Write a typed addition function: when passing two numbers, it returns a number; when passing two strings, it returns a string; and mixed pairs of number and string should trigger a TypeScript error.