-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
enhancement(load): Branded first renders #1275
Conversation
…ng a blocking stylesheet link
This pull request is automatically deployed with Now. Latest deployment for this branch: https://venia-git-zetlen-branded-first-render.magento-research1.now.sh |
cafb98f
to
f82a002
Compare
f82a002
to
bc07407
Compare
bc07407
to
7db5a55
Compare
@zetlen This is the mockup I have for a general "Page not found" use-case. Please let me know if any modifications need to be made for this specific instance. |
@zetlen On the loading indicator and text, there is a size and treatment for both that we are following on other pages, so would be good to keep that consistent here as well. |
85afbb9
to
6aed1c9
Compare
|
…nto-research/pwa-studio into zetlen/branded-first-render
@soumya-ashok The page name can include the name of the actual entity: whether it's the product ("Carmina Earrings") or the category "Accessories" or a search result for the query "green". Do you want to not include that dynamic data and just say "Product details", "Category" above the loading spinner? |
Yes, my preference would be to keep it generic for this first iteration, since we are working on a more detailed strategy for the future. |
@soumya-ashok OK, update pushed! In both the first-paint and intra-page loading indicators, you should now have a fully vertically centered UI. |
@dpatil-magento merge conflict and any missing stuff has been added! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zetlen Looks good to me now; thanks for making changes. 👍
Description
Refactor Mustache templates to share a small critical CSS block and use it to render a branded first paint.
Add a general concept of
resource.name
to UPWARD, enabling the loading indicator to be a shared partial which usesresource.name
and can therefore be customized per page.Refactor noscript and 404 pages to use the same basic system.
Related Issue
Closes #1272
Verification Steps
Go to a nonexistent page with an HTML extension, like


/nothing.html
. Verify Not Found page.Edit
packages/venia-concept/templates/seed-bundles.mst
and type garbage in thesrc
attribute so the app doesn't load.Go to category page:

/venia-tops.html
. Verify branded first render.Go to product page:

/carmina-earrings.html
. Verify branded first render.Open Chrome Developer tools, open the Command Palette (Cmd-Shift-P on OSX) and type "Disable JavaScript". Press Enter.
Refresh page. Verify branded no-script experience.


How Have YOU Tested this?
Portrait and landscape orientation on many, many browsers and devices.
Proposed Labels for Change Type/Package
Checklist: