My wikipedia viewer project works, but only when using the jquery Mobile library. I am not trying to do anything that would seemingly require the jquery Mobile library. I happened to add the library simply since I ignorantly thought I might need it to help with the site working on mobile devices. In my mind, the site should work with simple jquery being the only JS library required.
The main structure of the page is that you can search in the input box ( search event/call to wikipedia api is triggered based on a jquery keyup event of the Enter or Return key in the search box) and then a list will populate below with search results.
Thanks for your suggestion. I’d tried removing the $.mobile.loading().hide(); line and the mobile library earlier several times but the site doesn’t work without it.
Please visit the codepen again and try it out. I believe you will see the site doesn’t work even after I edited the pen to include your suggestions.