Develop a custom JavaScript plugin that enables Ajax-based pagination and filtering functionality to be easily added to any web page. Implement custom middleware to handle the server-side requests and enable the plugin to dynamically load content without having to refresh the entire page. Include options for customizable filtering, sorting, and pagination settings, as well as support for multiple data sources and API integration. Ensure the plugin is lightweight, easy-to-use, and compatible with all major browsers.
user