Skip to content
v0.9.1
Guides

Optimize

How big Momo is, what your visitors really download, and the few steps that make it smaller and faster.

The sizes

FileOn diskSent to the browser (gzip)
momo.min.css (everything)about 610 KBabout 100 KB
momo-site.min.css (no app parts)about 550 KBabout 91 KB
momo.js (everything)about 505 KBabout 135 KB
momo-site.js (no app parts)about 360 KBless still

The number that matters is the last column: servers and CDNs compress text before sending it. The files are fetched once and then kept by the browser.

1. Pick the right build

A website (a landing page, a blog, a shop front) does not need the app parts. The site build leaves out the app shell, kanban, calendar, charts, inbox, comments, shortcuts, command palette, file manager, tag input and upload.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/momo-neobrut-ui@0.9.1/dist/momo-site.min.css">
<script src="https://cdn.jsdelivr.net/npm/momo-neobrut-ui@0.9.1/dist/momo-site.js" defer></script>

2. Load it well

3. Fonts and icons

4. Your own CSS stays small

Momo sits in cascade layers (momo.base, momo.components, momo.utilities). Anything you write outside a layer wins over Momo without !important and without long selectors, so overrides are one short rule.

.card { --card-radius: 0px; }      /* wins: your CSS is outside Momo's layers */

5. Pictures matter more

On most pages one unprepared photo outweighs all of Momo. Give images a width and height so the page does not jump, add loading="lazy" below the first screen, and serve them at the size they are shown. See Images & figures.

What Momo already does

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close