0

I am facing the duplicate css and js issue in next.js on page view-source.

first time it load the css and js with "preload" and seconds time it load with simple .

same with the CSS.

nextjs(9.2.1) with ssr,node (12.14.1),react(16.12.0)

Please see the screenshot for more details

1 Answer 1

1

That is how preloading with the link tag works.

Please check out the MDN article on preloading: Preloading With rel=preload

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.