Fixed problems on initial page focus that only happen if the application uses Modern page style.
During migration, the ApplicationWebForm.js is replaced with an updated version.
After migration, re-apply any customizations you may have made to the original file.