Luca Corbo - Sr. Software Engineer @ ScientiaMobile.com
Google I/O Extended 2017 - Naples - Italy
1990
1998
2017
IBM PC 5150
Motorola DynaTAC 8000X
Source: https://www.flickr.com/photos/brad_frost/7387823392/
Source: https://www.scientiamobile.com/page/movr-mobile-overview-report
Source: https://www.scientiamobile.com/page/movr-mobile-overview-report
Total: 2602kB
Average Bytes per Page by Content Type - April 2017
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="style.css" rel="stylesheet">
<title>My Awesome Page</title>
</head>
<body>
<p>Hi everyone!</p>
<img src="awesome-photo.jpg">
</body>
</html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="style.css" rel="stylesheet">
<title>My Awesome Page</title>
</head>
<body>
<p>Hi everyone!</p>
<picture>
<source media="(min-width: 36em)"
srcset="awesome_photo_large.jpg 1024w,
awesome_photo_medium.jpg 640w,
awesome_photo_small.jpg 320w"
sizes="90vw">
<img src="awesome_photo.jpg" alt="Awesome photo!">
</picture>
</body>
</html>
<picture>
<source type="image/webp"
media="(min-width: 36em)"
srcset="awesome_photo_large.webp 1024w,
awesome_photo_medium.webp 640w,
awesome_photo_small.webp 320w"
sizes="90vw">
<source media="(min-width: 36em)"
srcset="awesome_photo_large.jpg 1024w,
awesome_photo_medium.jpg 640w,
awesome_photo_small.jpg 320w"
sizes="90vw">
<img src="awesome_photo.jpg" alt="Awesome photo!">
</picture>
// Create a new instance of WURFLEngine
$wurfl_engine = new \ScientiaMobile\WURFL\WURFLEngine($container);
// Get the device for the current request
$device = $wurfl_engine->getDeviceForHttpRequest();
// Get the value for a capability
if ($device->getCapability("ux_full_desktop")) {
echo "This is a desktop device";
} else {
echo "This is a mobile device";
}
// Load WURFL.js
// Target Smartphone devices
if (WURFL.is_mobile === true && WURFL.form_factor === "Smartphone") {
// targetSmartPhoneDevices();
}
<html>
<head>
<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="style.css" rel="stylesheet">
<title>My Awesome Page</title>
</head>
<body>
<p>Hi everyone!</p>
<picture>
<img src="/awesome_photo.jpg"
sizes="90vw" alt="Awesome photo!">
</picture>
</body>
</html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="style.css" rel="stylesheet">
<title>My Awesome Page</title>
</head>
<body>
<p>Hi everyone!</p>
<picture>
<img src="http://<token>.imgeng.in/http://example.com/awesome_photo.jpg"
sizes="90vw" alt="Awesome photo!">
</picture>
</body>
</html>
Chrome Dev Tool | https://developers.google.com/web/tools/chrome-devtools/ |
Lighthouse | https://developers.google.com/web/tools/lighthouse/ |
Webpagetest | https://www.webpagetest.org/ |
ImageEngine Tool | https://demo.imgeng.in/ |
Slides: https://lucor.dev/talks/rwd++
Twitter: @lucacorbo
Github: @lucor
Headquarter: Reston Virginia Development Centers in US, Italy and India |
WURFL, Wireless Universal Resource FiLe FOSS Project 2001 thru 2011 Commercial in 2011 with ScientiaMobile |
We are hiring!