XCLUB-COOL STUFF AROUND YOU

 找回密码
 Register
查看: 61|回复: 5
打印 上一主题 下一主题

Chrome Beta 76 adds lazy loading for images, supports site dark themes, and even sneaks in a Tron reference

[复制链接]

3005

主题

5万

帖子

5万

积分

Super CP

Crazy TechnologyTech Fans2020Eid PartyHot PartyPOP OUTChocolate Day MedalTeddy Day MedalACTIVE STARphotographerssign star1sign star2sign star3post star1post star2post star3sign star4post star4X'Club badge exclusive for Indiapost star5sign star5

跳转到指定楼层
#1
发表于 2019-06-16 12:59:16 来自手机 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
[br] [br]Chrome 75 was just released earlier this month, and right on schedule, Chrome 76 has entered the Beta Channel. This version is fairly massive, with plenty of changes that have been in the works for months. Without further ado, let's jump in![br][br]Lazy loading frames and images[br][br]As web pages become larger and more complex, the time it takes to load a site has steadily increased — especially for people on slow networks. One solution to this is "lazy loading," where some page elements aren't downloaded until you scroll down to them. For example, an image gallery could choose not to load images until they actually came into view.[br][br]There have been various ways for sites to lazily load resources over the years, like the old "lazyload" attribute in Internet Explorer, but Google announced last year that it would build the feature directly into Chrome. In version 76, the feature is finally enabled.[br][br]The new functionality allows sites to avoid loading images, advertisements, and other types of embedded content until the element comes into view with just one line of code. Here's a more detailed technical explanation from Google:[br][br]Chrome uses heuristics to recognize and avoid deferring hidden iframes likely used for analytics or communication, as well as hidden images like tracking pixels, since deferring those could break their functionality.[br][br]If the viewport is scrolled within a distance threshold of deferred content, it will start loading in. The distance depends on factors like the current network speed, such that it can be tuned so that deferred content is almost always finished loading by the time it becomes visible.[br][br]You can try out a demo here. I hope sites start to add support for this soon.[br][br][br]Dark theme for sites[br][br]Some web browsers that support dark mode, like Samsung Browser, invert the colors of web pages to make them fit the theme — but sometimes this causes sites to look broken or distorted. Apple introduced the 'prefers-color-scheme' browser feature last year for allowing sites to detect dark mode, and now Google has brought it to Chrome.[br][br]Starting in Chrome 76, if a site has its own dark mode, Chrome will automatically activate it when your device is set to dark mode. Android Police doesn't have a dark theme yet, but you can try it out on my personal site.[br][br]Now that Chrome, Safari, and Firefox all support this feature, perhaps we'll finally see it widely adopted..[br][br][br]"Identity Disc"[br][br]I'm sure I'll get plenty of hate for this in the comment section, but Tron: Legacy is one of my favorite films of all time (the original Tron isn't half-bad, either). With that being said, you can imagine my surprise when the Chrome team snuck a Tron reference into v76.[br][br]Chrome 76 includes a new flag, called #identity-disc, that adds your Google profile picture to the top-right corner of the New Tab Page. Tapping the picture opens a 'Sync and Google Services' page, with options to enable or disable usage analytics, Chrome Sync, and other settings.[br][br]If you're not caught up on your Tron lore, the 'Identity Disc' is the frisbee-shaped object that all programs on The Grid are given, and it contains all the program's memories. "If you lose your disc or fail to follow commands, you will be subject to immediate de-resolution."[br][br]Web Share Target API Level 2[br][br]The previous release of Chrome included the "Web Share API Level 2," which allows sites to share files and images using Android's built-in share dialog. For example, a photo editor web app could share photos to the native Google Photos app. Chrome 76 now includes the "Web Share Target API Level 2," which allows the opposite functionality — web apps can receive files and images from native apps.[br][br]This functionality is only enabled if you install a web app to your home screen, so you don't have to worry about lots of items filling up your share menu. This opens up the doors for even more powerful web apps; for example, you could share photos to the Twitter PWA straight from your Camera app, without having the native Twitter app installed. There's a lot of potential, and I'm excited to see what developers do with this.[br][br]Other features[br][br]As always, Chrome 76 includes changes for both users and developers. Here are some smaller features bundled with this update:[br][br]Web apps can now copy and paste images to/from the system clipboard, if they have the required permissions.[br][br][ul][li]Chrome now prevents a single page from opening multiple fullscreen windows.[br][/li][/ul][ul][li]Cookies are now site-specific by default, but sites can manually override the change.[br][/li][/ul][ul][li]Pressing the Escape key on a keyboard no longer counts as an activation method, to prevent malicious pages from being difficult to exit.[br][/li][/ul][ul][li]The old method of lazy loading images and frames ("lazyload" attribute on elements) no longer works in Chrome.[br][/li][/ul][ul][li]When using the Payment Request API, pages can now detect when the payment method is changed.[br][/li][/ul][ul][li]The DeviceMotionEvent and DeviceOrientationEvent methods can now only be used on HTTPS pages.[br][/li][/ul][ul][li]The new WebXR Device API is available, and is designed to replace the older WebVR API.[br][/li][/ul][ul][li]Web apps can now hide the 'Add to Home screen' popup.[br][/li][/ul]The Install button for Progressive Web Apps is now visible in the desktop browser. See this post for more details.[br]It's now impossible for sites to detect when Incognito Mode is activated.[br][br][br][br][br]#Infinix_India....
回复

使用道具 举报

4307

主题

1万

帖子

2万

积分

Jade Diamond LV31

ACTIVE STARsign star1sign star2post star1post star2sign star3post star3post star4post star5sign star4X'Club badge exclusive for India

#2
发表于 2019-06-16 13:17:27 来自手机 | 只看该作者
good sharing
回复

使用道具 举报

#3
发表于 2019-06-16 14:08:11 来自手机 | 只看该作者
[p]Nice share

回复

使用道具 举报

1万

主题

8万

帖子

9万

积分

Sapphire Diamond LV48

Crazy TechnologyDaily Check-inTech Fans2020PL KINGHappy children's dayEid PartyHot PartyDiamondHappy Easter Medal.pngGood Wallpaper DesignerChocolate Day MedalHug Day MedalKiss Day MedalPromise Day MedalPropose Day MedalTeddy Day Medalsingel medalACTIVE STAR2020 Wish Medal20M4.0xclub2019post star1post star2post star3sign star1sign star2sign star3sign star4post star4post star5X'Club badge exclusive for Indiasign star5

#4
发表于 2019-06-16 15:12:20 来自手机 | 只看该作者
Good share
回复

使用道具 举报

3712

主题

3万

帖子

4万

积分

Security Supervisors

Rank: 8Rank: 8

Happy children's dayHot PartyDiamondKiss Day MedalTeddy Day MedalACTIVE STAR4.0xclubXCLUB TOP FAN photographers2019post star1post star2post star3post star4sign star1sign star2sign star3sign star4post star5X'Club badge exclusive for Indiasign star5

5#
发表于 2019-06-16 16:02:24 来自手机 | 只看该作者
good share.
回复

使用道具 举报

2万

主题

18万

帖子

20万

积分

Super CP

couple medalStay HomeHappy Mother's DaySmileHappy children's dayEid PartyBest ReviewsX'Club badge exclusive for NigeriaXclub Kolpost star1sign star1post star2sign star2PL KINGTech Fans2020Weekly Tech Star2020Daily Check-inCrazy Technology

6#
发表于 2019-06-16 16:25:45 来自手机 | 只看该作者
Nice share brother
回复

使用道具 举报

高级模式
B Color Link Quote Code Smilies |上传

本版积分规则

Infinix Official Website|Infinix official mall|infinix Note 4|XCLUB-COOL STUFF AROUND YOU

GMT+8, 2025-06-24 01:00 , Processed in 0.039429 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表