I determine via Javascript if the User is using a mobile or a Desktop Device. If he is using the Desktop Device, they should be shown the Desktop Versions of the Website, if he is using a mobile Device it should display the mobile Application. Now I'm just hiding the HTML part that is not needed with CSS but I want to get rid of this part due to loading times.
Now I want to know how I can decide by javascript which HTML Code should be loaded?
Thanks in Advance