- devtools performance comparison - https://bit.ly/bb-perf-01
- Simply using preload link to prioritize assets in view port
- Improves cumulative layout shift as well by reducing the content movements
- link rel preload can also to passed as response header.
Last active
April 26, 2020 18:01
-
-
Save samarpanda/d6ce6d242c111986b0bd3d81d0ea1683 to your computer and use it in GitHub Desktop.
Performance case study 25-04-2020 bigbasket.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Remove extra params | |
if( | |
!(h === "/templates/default.location.component.html" || | |
h === "/templates/smart-banner-template.html") | |
){ | |
u(a) && A.setRequestHeader(b, a) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Below needs to be added to the top of html content or it can also be set in response header --> | |
<link rel="preload" href="/templates/default.location.component.html" as="fetch" crossorigin="use-credentials" /> | |
<link rel="preload" href="/templates/smart-banner-template.html" as="fetch" crossorigin="use-credentials" /> | |
<link rel="preload" href="/content/images/svg/hamburger-menu.svg" as="image" /> | |
<link rel="preload" href="/content/images/svg/profile-white.svg" as="image" /> | |
<link rel="preload" href="/media/uploads/section_item/images/hdpi/All_Order-Update_App_1-1360x350_25thApr.jpg" as="image" /> | |
<link rel="preload" href="/media/uploads/section_item/images/hdpi/All_bbstar_App_4_1360x350_15thApr.jpg" as="image" /> | |
<link rel="preload" href="/media/uploads/section_item/images/hdpi/2004225_essentials_640_17thApr.jpg" as="image" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment