React · Senior · Question 46 of 75

What are the preload and preinit APIs from react-dom in React 19 for?

Explanation

preload(href, { as: 'font' }), preinit(href, { as: 'style' }), prefetchDNS and preconnect can be called from components and during SSR - React inserts the matching <link>s into <head> and deduplicates them. This speeds up discovery of critical resources.

Further reading

Problem with a question

React · Senior · question 46

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz