require([ "jquery" ], function ($) { if (screen.width<=767) { jQuery('.section-one-content').load("https://eyewa.com/import_images/kwd-ar-h/kwd-ar-mobile.html"); } else { jQuery('.section-one-content').load("https://eyewa.com/import_images/kwd-ar-h/kwd-ar-desktop.html"); } });