SlideShare une entreprise Scribd logo
1  sur  31
What’s new in Web!
Rajesh Kumar
Senior software Developer, Pearson
JavaScript Enthusiast, Mentor, Speaker
Twitter : iamRajace
Linkedin: https://www.linkedin.com/in/rajeshkumar-sampath
Objective
• Baseline
• The dialog element
• Individual CSS transform properties
• New viewport units
• Deep copy in JavaScript
• The :focus-visible pseudo-class
• The Transform Stream interface
• Features of ECMAScript 14
Baseline
What is Baseline
• At Google I/O 2023, Google announced Baseline.
• Baseline helps you to see, whether a feature or API is safe to use in
your site or web applications.
• Everything that is fully supported in the most recent two versions of
major browsers will be part of Baseline.
The Chrome team is collaborating with other browser engines and
the web community to bring more clarity.
<dialog>: The Dialog element
• The <dialog> HTML element represents a dialog box or other
interactive component, such as a dismissible alert, inspector, or
subwindow.
<dialog>: The Dialog element
<dialog>: The Dialog element – open
attribute
Advantage of Native Element
• As a native HTML element, features like focus management, tab
tracking, accessibility and keeping the stacking context are built in.
Individual CSS transform properties
• We might be familiar with writing CSS transforms with three
properties in one line.
• With individual transform properties we can now specify transform
properties individually.
CSS transform properties
Individual CSS transform properties
New viewport units
• Existing units work well on desktop, but it behaves differently on
mobile devices.
• Viewport size is influenced by the presence or absence of dynamic
toolbars.
• These are user interfaces such as address bars and tab bars.
• New CSS units that account for mobile viewports with dynamic
toolbars.
• The large, small, and dynamic viewport units
Viewports
New viewport units
New viewport units
Deep copy in JavaScript
• const original = {id: 1, prop: {name: “Raj"}}
• const deepCopy = JSON.parse(JSON.stringify(original)); /* Old hack */
• const deepCopy = structuredClone(original); /* New way */
The :focus-visible pseudo-class
• The :focus-visible CSS pseudo-class checks if the browser believes
that the focus should be visible.
• We can now specify styles for only when focus should be visible.
• This selector is useful to provide a different focus indicator based on
the user's input modality (mouse vs. keyboard).
The :focus-visible pseudo-class
:focus-visible pseudo-class
The TransformStream interface
• The TransformStream interface of the Streams API makes it possible
to pipe streams into one another.
• TransformStream is a transferable object.
• For example, we can stream data from one place, then compress the
data stream to another location as the data gets passed.
ECMAScript 14 (ES14) / ECMAScript 2023
• ECMAScript 14 (ES14) / ECMAScript 2023 is expected to release in
June/July of 2023.
• Change Array by Copy
• Array find from last
• Hashbang Grammar
• Symbols as WeakMap keys
Array.prototype.toReversed()
Array.prototype.sort(compareFn
)
Array.prototype.toSpliced(star
t, deleteCount, …items)
Array.prototype.with(index,
value)
Array find from last
• Array find from last, a proposal for .findlast() and .findLastIndex()
methods on array and typed array.
Hashbang Grammar#
• A hashbang comment behaves exactly like a single line-only (//)
comment, except that it begins with #! and is only valid at the
absolute start of a script or module.
• When the Unix kernel’s program loader executes a JavaScript
program, the host strips the hashbang to generate a valid source
before passing it down to the engine.
• The JavaScript interpreter will treat it as a normal comment — it only
has semantic meaning to the shell if the script is directly run in a
shell.
• For Example
#!/usr/bin/env node
console.log(‘Hello');
Summary
• Baseline
• The dialog element
• Individual CSS transform properties
• New viewport units
• Deep copy in JavaScript
• The :focus-visible pseudo-class
• The Transform Stream interface
• Features of ECMAScript 14
Question & Answer
Thank you

Contenu connexe

Similaire à What's new in web in 2023

Similaire à What's new in web in 2023 (20)

My 70-480 HTML5 certification learning
My 70-480 HTML5 certification learningMy 70-480 HTML5 certification learning
My 70-480 HTML5 certification learning
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 
Web technologies-course 07.pptx
Web technologies-course 07.pptxWeb technologies-course 07.pptx
Web technologies-course 07.pptx
 
Ballerina- A programming language for the networked world
Ballerina- A programming language for the networked worldBallerina- A programming language for the networked world
Ballerina- A programming language for the networked world
 
Ballerina- A programming language for the networked world
Ballerina- A programming language for the networked worldBallerina- A programming language for the networked world
Ballerina- A programming language for the networked world
 
An evening with React Native
An evening with React NativeAn evening with React Native
An evening with React Native
 
REST easy with API Platform
REST easy with API PlatformREST easy with API Platform
REST easy with API Platform
 
Intro JavaScript
Intro JavaScriptIntro JavaScript
Intro JavaScript
 
Spring MVC framework
Spring MVC frameworkSpring MVC framework
Spring MVC framework
 
The ES6 Conundrum - All Things Open 2015
The ES6 Conundrum - All Things Open 2015The ES6 Conundrum - All Things Open 2015
The ES6 Conundrum - All Things Open 2015
 
Dmytro Kochergin Angular 2 and New Java Script Technologies
Dmytro Kochergin Angular 2 and New Java Script TechnologiesDmytro Kochergin Angular 2 and New Java Script Technologies
Dmytro Kochergin Angular 2 and New Java Script Technologies
 
Webpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of usWebpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of us
 
WEB MODULE 3.pdf
WEB MODULE 3.pdfWEB MODULE 3.pdf
WEB MODULE 3.pdf
 
Apache Drill (ver. 0.2)
Apache Drill (ver. 0.2)Apache Drill (ver. 0.2)
Apache Drill (ver. 0.2)
 
Play Framework and Activator
Play Framework and ActivatorPlay Framework and Activator
Play Framework and Activator
 
JavaScripts & jQuery
JavaScripts & jQueryJavaScripts & jQuery
JavaScripts & jQuery
 
Web development basics (Part-7)
Web development basics (Part-7)Web development basics (Part-7)
Web development basics (Part-7)
 
Developing Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptxDeveloping Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptx
 
Frameworks Galore: A Pragmatic Review
Frameworks Galore: A Pragmatic ReviewFrameworks Galore: A Pragmatic Review
Frameworks Galore: A Pragmatic Review
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

What's new in web in 2023

  • 2. Rajesh Kumar Senior software Developer, Pearson JavaScript Enthusiast, Mentor, Speaker Twitter : iamRajace Linkedin: https://www.linkedin.com/in/rajeshkumar-sampath
  • 3. Objective • Baseline • The dialog element • Individual CSS transform properties • New viewport units • Deep copy in JavaScript • The :focus-visible pseudo-class • The Transform Stream interface • Features of ECMAScript 14
  • 5. What is Baseline • At Google I/O 2023, Google announced Baseline. • Baseline helps you to see, whether a feature or API is safe to use in your site or web applications. • Everything that is fully supported in the most recent two versions of major browsers will be part of Baseline. The Chrome team is collaborating with other browser engines and the web community to bring more clarity.
  • 6. <dialog>: The Dialog element • The <dialog> HTML element represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
  • 8. <dialog>: The Dialog element – open attribute
  • 9. Advantage of Native Element • As a native HTML element, features like focus management, tab tracking, accessibility and keeping the stacking context are built in.
  • 10. Individual CSS transform properties • We might be familiar with writing CSS transforms with three properties in one line. • With individual transform properties we can now specify transform properties individually.
  • 13. New viewport units • Existing units work well on desktop, but it behaves differently on mobile devices. • Viewport size is influenced by the presence or absence of dynamic toolbars. • These are user interfaces such as address bars and tab bars. • New CSS units that account for mobile viewports with dynamic toolbars. • The large, small, and dynamic viewport units
  • 17. Deep copy in JavaScript • const original = {id: 1, prop: {name: “Raj"}} • const deepCopy = JSON.parse(JSON.stringify(original)); /* Old hack */ • const deepCopy = structuredClone(original); /* New way */
  • 18. The :focus-visible pseudo-class • The :focus-visible CSS pseudo-class checks if the browser believes that the focus should be visible. • We can now specify styles for only when focus should be visible. • This selector is useful to provide a different focus indicator based on the user's input modality (mouse vs. keyboard).
  • 21. The TransformStream interface • The TransformStream interface of the Streams API makes it possible to pipe streams into one another. • TransformStream is a transferable object. • For example, we can stream data from one place, then compress the data stream to another location as the data gets passed.
  • 22. ECMAScript 14 (ES14) / ECMAScript 2023 • ECMAScript 14 (ES14) / ECMAScript 2023 is expected to release in June/July of 2023. • Change Array by Copy • Array find from last • Hashbang Grammar • Symbols as WeakMap keys
  • 27. Array find from last • Array find from last, a proposal for .findlast() and .findLastIndex() methods on array and typed array.
  • 28. Hashbang Grammar# • A hashbang comment behaves exactly like a single line-only (//) comment, except that it begins with #! and is only valid at the absolute start of a script or module. • When the Unix kernel’s program loader executes a JavaScript program, the host strips the hashbang to generate a valid source before passing it down to the engine. • The JavaScript interpreter will treat it as a normal comment — it only has semantic meaning to the shell if the script is directly run in a shell. • For Example #!/usr/bin/env node console.log(‘Hello');
  • 29. Summary • Baseline • The dialog element • Individual CSS transform properties • New viewport units • Deep copy in JavaScript • The :focus-visible pseudo-class • The Transform Stream interface • Features of ECMAScript 14