L
L
lookingfor22022-02-09 12:10:05
React
lookingfor2, 2022-02-09 12:10:05

How to optimize external scripts for pagespeed?

Guys, please tell me how you optimize external scripts (for example, recapcha, google tag, metrics, etc.)
pagespeed constantly swears at them

, they are connected to useEffect via the function
export const scriptAppend = (path: string):void => {
const d = window .document,
h = d.head,
e = d.createElement("script");
async = true;
e.src = path;
h.appendChild(e);
}
application ssr

620384eb346b8232862945.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question