Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files

I solved the problem by applying an offset, as proposed in this question: How to exclude latest x posts from a paginated query?.