Replaced resize.js (Resize Events) with custom alternative (new code) integrated into pe-ap.js to resolve #974 and reduce the number of http transfers.