We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

A webpage that makes an ajax call, then jumps to a new page works using Chrome but does not work with Firefox.

  • 2 replies
  • 1 has this problem
  • 4 views
  • Paskiausią atsakymą parašė cor-el

more options

Does Firefox require that a page remain active in the browser until the ajax call finishes? Is there any documentation that explains what Firefox requires to always successfully use javascript ajax calls to external API's?

Does Firefox require that a page remain active in the browser until the ajax call finishes? Is there any documentation that explains what Firefox requires to always successfully use javascript ajax calls to external API's?

All Replies (2)

more options

Pending requests of all kinds may be terminated when the page is unloaded. I imagine you could do your navigation in a callback when the request returns. But there should be plenty of advice on sites like StackExchange since this is quite an old behavior.

more options