ES­SEN­TIAL JS APIS & EL­E­MENTS

Web Designer - - 30 best html, css & js apis -

IN­TER­SEC­TION OB­SERVER https://bit.ly/2n03ejx

Fire a call­back when­ever an el­e­ment en­ters and ex­its a cer­tain area. Best for lazy load­ing or in­fi­nite scroll ef­fects.

RE­PORT­ING OB­SERVER https://bit.ly/2ot017n

Get no­ti­fied when the browser has to in­ter­vene, for ex­am­ple hav­ing to pro­vide a fall­back for a slow-load­ing font.

OFFSCREENCANVAS https://de­vel­op­ers.google.com/web/ up­dates/2018/08/off­screen-can­vas

Draw­ing to a <can­vas> is an ex­pen­sive task for a browser. This new API can ren­der without hit­ting the DOM.

INTERNATIONALISATION API https://mzl.la/1dsihlk

Avoid send­ing heavy li­braries and show dates, num­bers and strings in a for­mat that makes sense in the user’s lo­ca­tion.

CSS PAINT API https://bit.ly/2icgl1p

Use Javascript to gen­er­ate dy­namic back­grounds, bor­ders and im­age masks and ap­ply them in CSS without a heavy per­for­mance hit.

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.