Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
How to handle AJAX loaded content against back/forward buttons?

Based on scroll (infinite load) contents gets appended to the DOM via AJAX. Let's say user loaded 20 pages of content (100 new posts if we say 5 posts per page); we can say we have 100 more posts compared to original DOM that only contains 1st page with 5 posts.

But when user clicks to a link and changes the URL and after that if he wants to go back with browser's back button; AJAX loaded content gets deleted by browser IN CHROME and this affects the user experience badly.

In Safari, Firefox and Opera AJAX loaded data is not getting removed from original DOM.

How can I handle AJAX loaded data on page change and using back button?

Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!