I created an app with angularjs and bootstrap. The content is served by a backend. There are also dynamic images served as links. They can be requested from the backend is different width sizes.
Question: how can I detect the users screen max-width before requesting data from the backend? So that the backend will respond with links to smaller images?