This is the first step forIn order to support the lazy loading of reference lists.s, Just remove them from the HTML.
There are rules about which references lists to remove.we need to develop a heuristic for determining if references should be removed from the content of the page
To ensure that the intent of the author is not changed, This is because we need to ensurewe should only remove references that the intenare not "part of the author is not changedcontent". Here is a first pass at a heuristic:
1. If aIf the reference list is in the last section (or 2?),last n sections) of a page, it should be removed. itThe entire section including the header should be removed as well.
2. Do not remove reference lists within info boxes
3. Do not remove reference lists in sections with "other" content
This should ensure that references that are "part of the content" remain so. It also allows us to remove large lists from the end of a page in order to deliver it performantly and to be able to construct a custom UI on the client.
> NOTE: It should be noted that even if a reference list is NOT removed, it will still be returned in the JSON references API. So there is some minor duplication. However, this should not adversely affect the size of the data as references lists within the content (not in a reference section at the end of a page) are typically very small in size.
The primary goal of lazy loading references is to remove the rather large lists that occur at the end of a page.