%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% flowchart LR subgraph Era1["ยุคโหลดทุกอย่าง / Eager Loading"] A["img src ใหญ่โหลดทันทีทุกภาพ"] end subgraph Era2["ยุค Lazy Loading / Performance"] B["loading=lazyโหลดเมื่อใกล้เห็น"] C["Lazy Routesแยก bundle"] end subgraph Era3["ยุค Angular Optimization"] D["NgOptimizedImagengSrc"] E["@deferโหลด component เมื่อจำเป็น"] end A --> B --> C --> D --> E
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% flowchart TD A["Page Loadโหลดหน้า"] --> B["Priority Imageโหลดก่อน"] A --> C["Lazy Route Bundleโหลดเมื่อเข้า route"] A --> D["@defer Componentโหลดเมื่อเห็น"] B --> E["Better LCPแสดงผลสำคัญเร็ว"] C --> F["Smaller Initial Bundlebundle แรกเล็กลง"] D --> G["Less Main-thread Workงานเริ่มต้นลดลง"]
กำลังเตรียมกราฟ...