Skip to content

QuizNot attempted

Why retrying is not enough

A lazy import fails because a deploy deleted the old chunk. Why does a retry wrapper around import() not fix it?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Every retry asks for the same old URL, which still returns 404; only loading the new HTML gives the code the new file names
  • The URL is baked into the old code, and the file behind it is gone, so retrying repeats the same failure.
  • Retries help with transient network errors
  • after a deploy you need new HTML (a reload) or old assets kept on the server.
  • Not "not allowed": you can call import() again.
  • Not "corrupted file": there is no file.
  • Not "three retries": the number doesn't matter.