If a library is added during an ajax request, the drupalSettings.ajaxPageState.libraries
contains duplicate values.
This is a performance issue when using POST ajax request but becomes an major issue if the ajax is made with GET because after each ajax request the URI for the next ajax request becomes larger and at some point it becomes larger than allowed and a "414 Request-URI Too Large" is possible.