Part 01 - Introduction to Web Development Fundamentals
Part 01 - Introduction to Web Development Fundamentals
● Back-End Development
● Full-Stack Development
● Frameworks/Libraries
● React, Angular, Vue.js
● Frameworks
● Express.js, Django, Ruby on Rails
● Benefits:
● Flexibility in development
● Package Managers:
● npm, Yarn
● Build Tools:
● Webpack, Gulp, Grunt
● Cross-Browser Compatibility:
● Ensuring web applications function correctly across different browsers.
● Accessibility:
● Making web applications usable for people with disabilities.
● Performance Optimization:
● Improving load times and responsiveness.
● Recap
https://www.youtube.com/watch?v=K2qV6VpfR7I
● <head>
● <body>
● <script src="script.js"></script>
11/21/2024 Dr. Amjad AbuHassan 29
HTML Body Section
● Content Elements: Text, images, links, lists.
● Recap
Next Lecture
● Comment Nodes: Represent comments in the code (e.g., <!-- comment -->)
● Stages:
● Parse HTML and CSS: Create the DOM and CSSOM trees
● Construct Render Tree: Combine DOM and CSSOM
● Layout: Calculate geometry of elements
● Paint: Fill pixels on the screen
● Composite: Combine layers and render final image
● Performance Tip: Minimize the amount of CSS and use efficient selectors
11/21/2024 Dr. Amjad AbuHassan 76
Rendering Pipeline Flowchart
● Calculate geometry
● Performance Tip: Use CSS shorthand properties to reduce the amount of code
● Paint:
● - Fill background color: blue
● Example: Layers for a complex web page with fixed headers and animated content
● Performance Tip: Limit the number of layers to avoid excessive memory usage
● 2. Content layer
● Compositing:
● - Merge layers 1, 2, 3, and 4 to create the final image
● Triggers:
● Reflow: Adding/removing elements, resizing window, changing CSS properties affecting layout
● Repaint: Changing styles (e.g., color, visibility) without affecting layout (affect the appearance)
● Best Practices:
● Batch DOM updates
● Minimize layout thrashing
● Use CSS transitions/animations