Yeah I totally get that client-side browser detection is a solid way to go about this in general but what I was more interested in was with how library detects devices:
and its use in blade templates
<p>This is the MOBILE template!</p>
<p>This is the TABLET template!</p>
<link rel="stylesheet" href="tablet.css" title="Reduce the page size, load what the user need">
<p>This is the DESKTOP template!</p>
The blade stuff is only useable in a full Laravel framework but for me and other developers I know this could cut down on quite a lot the output of HTML, CSS and JS when building fully responsive websites. My thought being that server-side detection would be faster and wouldn’t need JS or CSS to be loaded before detection occurs?
Admittedly I’m only testing out this library for fun at the moment but if it proves to be of real use in a production environment, I was just curious as to its potential in Sages core.