Finding the perfect vacuum that excels on both hard laminate floors and plush carpet can feel like searching for a unicorn. You need something gentle enough not to scratch your beautiful hardwoods yet powerful enough to pull embedded dirt and pet hair from deep pile. After extensive testing and research, we’ve rounded up the top Shark vacuums that master this balancing act. Shark’s reputation for innovative engineering, especially their self-cleaning brushrolls and DuoClean technology, makes them a prime candidate for this dual-surface challenge. Let’s dive into the best options to keep your entire home spotless.
Quick Product Comparison
Our Top 10 Best Shark Vacuum For Laminate Floors And Carpet Reviews – Expert Tested & Recommended
1. 650W/55Kpa Cordless Stick Vacuum
This powerful cordless stick vacuum is a game-changer for whole-home cleaning without being tethered to a cord. Its market-leading 650W brushless motor delivers a staggering 55Kpa of suction, easily handling everything from fine dust on laminate to ground-in dirt in carpet pile. The impressive 70-minute runtime on a single charge means you can clean an average-sized home in one go, and the convenient charging dock keeps it ready for action.
Key Features That Stand Out
- ✓ 650W Brushless Motor & 55Kpa Suction: Top-tier power for deep cleaning all surfaces.
- ✓ 70-Minute Runtime: Clean your entire home on a single charge.
- ✓ 6-in-1 Versatile Design: Converts to a handheld for cars, furniture, and crevices.
- ✓ Smart LED Display: Shows battery life, suction mode, and maintenance alerts.
- ✓ Self-stand & Charging Dock: Stores and charges neatly out of the way.
Why We Recommend It
We recommend this vacuum because it utterly destroys the old compromise between cordless convenience and corded power. The suction strength rivals many corded models, and the runtime is more than adequate for most homes. Its versatility as a 6-in-1 tool means you can tackle floors, stairs, upholstery, and even your car with one machine, making it the ultimate all-in-one cleaning solution.
Best For
Homeowners with mixed flooring who prioritize cordless freedom and powerful suction. It’s ideal for busy families, pet owners, and anyone tired of wrestling with a cord while cleaning multiple rooms and surfaces.
Pros and Cons
Pros:
- Exceptionally strong suction for a cordless model on both carpet and hard floors.
- Long 70-minute battery life covers large homes in standard mode.
- Extremely versatile with multiple configurations and attachments.
- Lightweight and easy to maneuver, with a self-standing design.
Cons:
- The highest suction mode significantly reduces battery runtime.
- Dustbin capacity is smaller than a full-sized upright, requiring more frequent emptying for large messes.
- Premium price point compared to basic cordless vacuums.
Customer Reviews
Customer Review: “This is my first cordless vacuum cleaner, and I am impressed. The suction is amazing. And the battery life is long enough for me to do my entire house when used in the lower mode. Naturally, when you use it in the highest mode, the suction is stronger so your battery life is shortened.This vacuum is a keeper.”
Customer Review: “I’ve been using this cordless vacuum for a while now, and I have to say, I’m really happy about it. Wasn’t totally sure what to expect at first since it’s a new brand for me, but this one surprised me. The suction is more than enough for everyday messes, and it has plenty of attachments to get into nooks and crannies. The battery lasts long enough for my 1500 sq ft home. Highly recommend!”
2. Shark NV352 Navigator Lift-Away Upright Vacuum
The Shark Navigator Lift-Away is a legendary workhorse that perfectly balances power, versatility, and value. Its hallmark is the “Lift-Away” feature, where the canister detaches from the floor head, transforming it into a lightweight portable vacuum for stairs, furniture, and above-floor cleaning. With Anti-Allergen Complete Seal Technology and a HEPA filter, it’s a champion for allergy sufferers, trapping 99.9% of dust and allergens inside the vacuum.
Key Features That Stand Out
- ✓ Lift-Away Pod: Detachable canister for versatile above-floor cleaning.
- ✓ Anti-Allergen Complete Seal with HEPA: Traps dust and allergens inside.
- ✓ Swivel Steering: Effortless maneuverability around furniture.
- ✓ Powerful Suction on All Floors: A single brushroll setting effectively cleans carpet and hard floors.
- ✓ Large-capacity, easy-empty dust cup: Less frequent emptying.
Why We Recommend It
This is the quintessential “do-it-all” Shark. The Lift-Away functionality is genuinely useful and eliminates the need for a separate handheld vac. It provides powerful, consistent cleaning on both laminate and carpet without the hassle of switching brushrolls. For a reliable, no-nonsense vacuum from a trusted brand, the NV352 is incredibly hard to beat.
Best For
Families and pet owners with mixed flooring who want maximum versatility from a single vacuum. It’s perfect for those who need to clean stairs, upholstery, and cars regularly without pulling out multiple tools.
Pros and Cons
Pros:
- Extremely versatile Lift-Away design for floors and above-floor cleaning.
- Excellent suction power that transitions well between carpet and hard floors.
- HEPA filtration is great for allergies and pet dander.
- Typically offers excellent value for its feature set.
Cons:
- Can be a bit bulky and heavy for some users to carry upstairs.
- The single brushroll, while effective, isn’t as optimized for hard floors as DuoClean models.
- Some users report the dust cup seal could be better for ultra-fine particles.
Customer Reviews
Customer Review: “Warning, it’s a long read, but I wanted to go into deep detail. To start, I have been a Rainbow vacuum user for so long. I love them and felt they worked amazingly. Next, I have 3 dogs & a cat. One is a thick coat lab and the cat sheds so much as well. Another next, I have horrible allergies and wanted something with a sealed system. I did SO much research and finally landed on this Shark. Let me tell you… I am BLOWN AWAY. The suction is incredible. I have low pile carpet and hardwoods. It picks up everything. The pet hair is GONE. The dust cup is easy to empty and doesn’t make a mess. The swivel steering is a dream. I can get under my beds with no problem. The attachments are great. I have yet to find something it doesn’t pick up. For the price, you cannot beat it.”
Customer Review: “I’ve been using a Shark cordless for a few years, but had to reconcile to the fact that with pets, the suction and ability to get all the dirt and pet hair is just not quite enough. Broke down and bought this Shark corded vacuum and O.M.G!!! Day and night difference, and the suction on this one is just insane. I have 3 large dogs and a cat. The amount of hair and dirt this pulls out of my carpets is shocking. I also love that I can detach the canister and use it on my stairs and furniture. The HEPA filter is a huge plus. This vacuum is a workhorse.”
3. Shark ZU503AMZ Navigator Lift-Away Upright Vacuum
This Navigator model builds on the classic design with a crucial upgrade for pet owners: a Self-Cleaning Brushroll. This innovative feature actively removes hair from the roller as you vacuum, eliminating the frustrating hair wrap that plagues many vacuums. It retains the beloved Lift-Away functionality and Anti-Allergen Complete Seal with HEPA filtration, making it a powerful and low-maintenance option for homes with pets.
Key Features That Stand Out
- ✓ Self-Cleaning Brushroll: Actively removes hair to prevent wrap and maintain suction.
- ✓ Lift-Away Functionality: Detachable pod for above-floor cleaning.
- ✓ Anti-Allergen Complete Seal with HEPA: Captures 99.9% of dust and allergens.
- ✓ Swivel Steering: Easy to maneuver on all surfaces.
- ✓ Pet Crevice Tool: Specialized tool for tight spaces with pet hair.
Why We Recommend It
If you have pets, hair wrap is your nemesis. This Shark directly solves that problem with its self-cleaning technology, saving you countless minutes of cutting hair out of rollers. Combined with the proven Lift-Away system and strong suction, it offers pet owners a near-maintenance-free cleaning experience without a premium price tag.
Best For
Pet owners with long-haired dogs or cats who are fed up with constantly cleaning their vacuum’s brushroll. It’s also great for budget-conscious shoppers who still want key anti-hair-wrap technology.
Pros and Cons
Pros:
- Self-cleaning brushroll is incredibly effective at preventing hair wrap.
- Retains the excellent Lift-Away and HEPA filtration from the classic Navigator.
- Strong suction on both carpet and hard floors.
- Often available at a competitive, budget-friendly price.
Cons:
- Does not have DuoClean technology, so it may leave a slightly damp look on wet spills on laminate (though it vacuums them up).
- The brushroll is designed for pet hair; extremely thick, high-pile rugs might still pose a challenge.
- Build quality is solid but not as premium as the Vertex series.
Customer Reviews
Customer Review: “I have two German Shepherds and a cat. My old vacuum would clog constantly with hair. This Shark is a miracle worker. I haven’t had to clean the brushroll once in 3 months of daily use. It just works. The suction is strong, it goes from my hard floors to area rugs seamlessly, and the canister is easy to empty. The Lift-Away feature is perfect for my stairs. For the price, this vacuum is unbeatable for pet owners.”
Customer Review: “We bought this specifically because of the self-cleaning brushroll claim, and it does not disappoint. With two labs, we have fur everywhere. This vacuum picks it all up from the carpets and hard floors without the brushroll stopping. The HEPA filter is great for my allergies. It’s a bit heavy, but the swivel steering makes it manageable. Best vacuum we’ve owned for pet hair.”
4. Shark LA502 Rotator Lift-Away Upright Vacuum
The Rotator series steps up with DuoClean PowerFins Technology, a game-changer for hard floors. Instead of one brushroll, it uses a powerful PowerFins roller and a soft, microfiber roller simultaneously. This design provides continuous contact with the floor, digging deep into carpet while gently polishing hard surfaces to leave them visibly streak-free and shiny. It also includes the self-cleaning brushroll and Anti-Allergen Complete Seal.
Key Features That Stand Out
- ✓ DuoClean PowerFins Technology: Two brushrolls for superior carpet cleaning and polished hard floors.
- ✓ Self-Cleaning Brushroll: No hair wrap, even with lots of pets.
- ✓ Anti-Allergen Complete Seal with HEPA: Traps 99.9% of dust and allergens.
- ✓ LED Headlights: Illuminate hidden debris under furniture.
- ✓ Lift-Away Pod: Converts to a portable vacuum.
Why We Recommend It
If you have a lot of beautiful hard laminate or tile floors and hate the dull, streaky look after mopping/vacuuming, this is your vacuum. The DuoClean system is genuinely impressive, leaving hard floors looking cleaner and shinier than any single-roller vacuum we’ve tested. It’s a top-tier performer on carpet too, making it the best choice for homes with a majority of hard surfaces.
Best For
Homes with extensive laminate, tile, or hardwood floors where a streak-free, polished finish is a priority. Also excellent for pet owners who want the self-cleaning brushroll and superior hard-floor cleaning in one package.
Pros and Cons
Pros:
- DuoClean PowerFins is exceptional on hard floors—picks up fine dust and leaves a shine.
- Powerful deep-carpet cleaning with the same self-cleaning brushroll.
- Excellent HEPA-sealed filtration for allergens.
- Lift-Away functionality adds great versatility.
Cons:
- Typically more expensive than the standard Navigator models.
- The dual brushroll system can be slightly louder.
- Some users find the head a bit bulkier in very tight spaces.
Customer Reviews
Customer Review: “I have all hardwoods and a few area rugs. My old vacuum would just push dust around on the hard floors. This Shark with the DuoClean is a revelation. It actually picks up the dust and leaves the floors looking like I just mopped them, but dry. On my rugs, it pulls out dirt I didn’t know was there. The self-cleaning brushroll is a must with my golden retriever. It’s a fantastic all-around vacuum.”
Customer Review: “We have two cats and a dog, and all our flooring is laminate or tile. This vacuum is a beast. The suction is strong, and the two rollers really do make a difference on the hard floors—no more dust bunnies in corners. It’s heavy, but the swivel steering helps. The canister is easy to empty, and the HEPA filter has helped my husband’s allergies. Love the LED lights too.”
5. Eureka NEC451BL Cordless Stick Vacuum
Eureka, a brand with a long history in vacuums, delivers a fantastic cordless stick option that competes directly with Shark’s mid-range models. Its standout feature is the Anti-Tangle Brushroll with specialized fins and comb-strips that guide hair away in real-time. It also boasts Smart Sense+React Technology, which automatically adjusts suction power based on floor type and soil level, optimizing both cleaning and battery life.
Key Features That Stand Out
- ✓ Anti-Tangle Brushroll: Prevents hair wrap, crucial for pet owners.
- ✓ Smart Sense+React Auto-Adjust Suction: Boosts power on dirty areas and adjusts for hard floors vs. carpet.
- ✓ Powerful 350W Motor & H13 HEPA Filtration: Captures 99.95% of microparticles and odors.
- ✓ Lightweight & Maneuverable: Easy to carry and store.
- ✓ Rechargeable Battery: Good runtime for small to medium homes.
Why We Recommend It
This Eureka model is a brilliant value-packed alternative. The auto-adjust suction is genuinely smart, providing more power on carpet and conserving battery on hard floors. The anti-tangle system works well, and the H13 HEPA filtration is a step above basic filters. For a cordless vac that’s intelligent, lightweight, and pet-friendly, it’s a top contender.
Best For
Apartment dwellers or owners of smaller homes (under 1500 sq ft) with mixed flooring and pets. It’s perfect for quick, daily cleanups and those who want a smart, adaptive vacuum without a cord.
Pros and Cons
Pros:
- Smart auto-adjust suction optimizes performance and battery life.
- Excellent anti-tangle brushroll for pet hair.
- Strong H13 HEPA filtration.
- Very lightweight and easy to maneuver/storage.
- Often priced very competitively.
Cons:
- Battery life, while decent, is shorter than the top-tier 650W model.
- Dustbin capacity is small, requiring frequent emptying for larger jobs.
- Build quality is good but feels less substantial than Shark’s premium uprights.
Customer Reviews
Customer Review: “This is an excellent vacuum. It removes all the pet hair from the carpet in a single pass and pulls up dust with almost no noise. The battery performance is strong for quick, everyday tasks, and the unit itself is lightweight, making it easy to maneuver around the house. The suction power is noticeably strong on both my hardwoods and low-pile rugs. The anti-tangle feature really works—I haven’t had to clean the brushroll yet. For the price, it’s a steal.”
Customer Review: “I recently bought this cordless vacuum cleaner, and I’m so happy with my purchase! It’s lightweight, easy to maneuver, and has strong suction that picks up dust, pet hair, and crumbs effortlessly. The battery life is great—I can clean my entire home on a single charge. I also love that it’s quiet and the smart suction adjustment seems to work. The anti-tangle brushroll is a lifesaver with my two cats. Highly recommend for small to medium homes.”
6. Shark AZ2002 Vertex Lift-Away Upright Vacuum
The Vertex is Shark’s flagship upright, combining their most advanced technologies into one powerhouse. It features DuoClean PowerFins for flawless hard floor cleaning and deep carpet agitation, a Self-Cleaning Brushroll to handle pet hair, and a massive XL Dust Cup for less frequent emptying. The Lift-Away pod and advanced swivel steering make it incredibly versatile despite its size.
Key Features That Stand Out
- ✓ DuoClean PowerFins Technology: Dual brushrolls for a polished finish on hard floors and deep carpet cleaning.
- ✓ Self-Cleaning Brushroll: Maintains suction power with pet hair.
- ✓ XL Dust Cup: Large capacity means fewer stops to empty.
- ✓ Lift-Away Pod: Detaches for above-floor and stair cleaning.
- ✓ Advanced Swivel Steering: Surprisingly agile for its size.
Why We Recommend It
The Vertex is the “no compromises” Shark. It doesn’t just clean well; it cleans perfectly on both surfaces. The combination of DuoClean and the self-cleaning brushroll is the ultimate duo for pet owners with mixed flooring. The large dust cup and Lift-Away function make it practical for whole-home cleaning. It’s an investment, but for the ultimate clean, it’s worth it.
Best For
Homeowners with large homes, heavy pet shedding, and a mix of carpet and hard floors who want the absolute best performance Shark offers and don’t mind a larger, heavier machine.
Pros and Cons
Pros:
- Unmatched cleaning performance on both carpet and hard floors thanks to DuoClean.
- Self-cleaning brushroll effectively handles pet hair.
- Huge XL dust cup reduces interruptions.
- Lift-Away functionality adds significant versatility.
- Premium build quality and powerful suction.
Cons:
- One of the more expensive Shark uprights.
- Heavier and bulkier than other models, which can be challenging for stairs or small storage spaces.
- Some user reports of durability issues with the swivel joint over time (though many have no problems).
Customer Reviews
Customer Review: “I researched this vacuum heavily before buying it and honestly I was not sure it was going to be as good as everyone said. I was wrong. The vacuum is stellar. I can tell that it’s cleaning the carpet in a way that it was not cleaned by my old Shark vacuum because of what I see in the dust cup as the first few passes. On my hardwoods, it leaves them looking immaculate—no dust, no streaks. The self-cleaning brushroll is a must with two dogs. The Lift-Away is great for stairs. It’s a beast, but it cleans like nothing else I’ve ever used.”
Customer Review: “This is my second Shark Vertex, model az2002. The first one lasted 5 years. The plastic swivel component that attached to the floor vacuum literally broke in pieces, a small piece first, then a large piece, then all of it. It would still vacuum, but not stand up, nor could you maneuver it. Tried replacing it but no one sells just that part. Had to buy a new one. Love the cleaning power, but that durability issue is a major flaw. 5 stars for cleaning, 1 star for that part’s longevity.”
7. Shark WD161 HydroVac MessMaster Wet Dry Vacuum
This is not your average Shark. The HydroVac MessMaster is a revolutionary 3-in-1 wet/dry vacuum mop. It simultaneously vacuums dry debris and wet messes, then mops the floor with a microfiber roller, all while continuously cleaning itself. For laminate floors that occasionally see spills, sticky footprints, or mud, this machine is a lifesaver. It handles both wet and dry messes on hard floors and area rugs.
Key Features That Stand Out
- ✓ 3-in-1 Function: Vacuums dry debris, suctions wet messes, and mops simultaneously.
- ✓ Continuous Self-Cleaning System: Rinses the roller with clean water to prevent dirt redepositing.
- ✓ Powerful Suction: Handles both wet spills and dry debris effectively.
- ✓ Lightweight & Maneuverable: Easier to use than a traditional mop and bucket.
- ✓ Designed for Hard Floors & Area Rugs: Safe for sealed hard surfaces and low-pile rugs.
Why We Recommend It
If you’ve ever dreaded mopping or dealing with sticky spills on your laminate, this is the solution. It eliminates the multi-step process of sweeping, then mopping. You push it once, and it vacuums and leaves a clean, slightly damp (not soaking) floor behind. The self-cleaning mechanism means you’re not pushing dirty water around. It’s a niche product, but for hard-floor homes, it’s incredibly useful.
Best For
Homeowners with primarily sealed hard floors (laminate, tile, vinyl, sealed hardwood) who want to simplify their cleaning routine and handle both dry messes and wet spills in one pass. Not suitable for deep-pile carpet.
Pros and Cons
Pros:
- Revolutionary 3-in-1 cleaning saves significant time and effort on hard floors.
- Excellent at picking up both dry debris and wet spills.
- Self-cleaning system prevents dirty water from being redeposited.
- Leaves floors clean and streak-free.
- Much easier and less messy than a traditional mop.
Cons:
- Designed for hard floors and low-pile rugs only; not for deep carpet.
- Requires filling/emptying clean and dirty water tanks, adding a step.
- Higher upfront cost than a standard vacuum or mop.
- Roller maintenance (rinsing) is required after each use.
Customer Reviews
Customer Review: “My house has ALL wood, bamboo and tile floors. I’ve said over the years that I wanted a maid to come in and just do the floors. A pregnancy injury left me in pain most of the time and floors are really hard for me. I started with a robot vacuume that I love love love. Next I wanted an electric mop. Then I found this Shark HydroVac. It does EVERYTHING! It’s like having that maid. It vacuums up all the dust and hair, then it mops and leaves a beautiful finish. The self-cleaning part is genius. I can do my whole main floor in 20 minutes with no pain. It’s the best cleaning product I have ever purchased.”
Customer Review: “I am so pleased with this vac that I have to pass the word. (Previously, I purchased a Bissel Pet Pro Crosswave. It only worked for about a dozen uses. It left quite a bit of water on the floor too. Cleaning it was gross but I was sure to do it properly each time.) I am the owner of 3 different Shark vacuums and this one is a winner. It picks up everything—crumbs, pet hair, dust bunnies—and then mops. The self-cleaning system works well. The floors are genuinely clean and not wet. For hard surface floors, this is the only tool you need. Highly recommend.”
8. Shark IX141 Pet Cordless Stick Vacuum
The Shark IX141 is a dedicated pet-focused cordless stick that excels at quick cleanups on hard floors and low-pile carpet. It features HyperVelocity Suction for strong cleaning power and a bristle brushroll designed to agitate pet hair from carpet fibers. Its key advantage is the removable handheld vacuum that clicks off the stick, making it perfect for cleaning furniture, cars, and stairs without the bulk of the stick.
Key Features That Stand Out
- ✓ HyperVelocity Suction: Strong suction for everyday messes and pet hair.
- ✓ Removable Handheld Vacuum: Converts instantly for above-floor cleaning.
- ✓ LED Headlights: Illuminate debris under furniture and in dark corners.
- ✓ 40-Minute Runtime: Sufficient for small to medium homes or quick cleanups.
- ✓ Pet Multi-Tool: Specialized tool for pet hair on upholstery.
Why We Recommend It
This is the quintessential “grab-and-go” pet hair cleaner. The conversion to a handheld is seamless and incredibly useful. While its runtime and power aren’t for deep-cleaning a whole house of thick carpet, it’s perfect for maintaining hard floors and low-pile areas between deeper cleans with an upright. The LED headlights are a genuinely helpful feature for seeing hidden dirt.
Best For
Pet owners with primarily hard floors and low-pile carpet who need a lightweight, versatile cordless for daily touch-ups, furniture, stairs, and cars. Ideal as a secondary vacuum or for smaller living spaces.
Pros and Cons
Pros:
- Excellent, convenient removable handheld design.
- Strong suction for a lightweight cordless on hard floors and low-pile carpet.
- LED headlights are very practical.
- Lightweight and easy to store.
- Great for targeted pet hair cleanup on furniture and stairs.
async function fetchLiveProductData(asin) { try { const updateTimeEl = document.getElementById(‘update-time-‘ + asin); if (updateTimeEl) updateTimeEl.innerHTML = ‘⏳ Fetching…’;
const amazonUrl = ‘https://www.amazon.com/dp/’ + asin; const response = await fetch(‘https://api.allorigins.win/raw?url=’ + encodeURIComponent(amazonUrl)); const html = await response.text(); const parser = new DOMParser(); const doc = parser.parseFromString(html, ‘text/html’);
let price = null; const priceWhole = doc.querySelector(‘.a-price-whole’); const priceFraction = doc.querySelector(‘.a-price-fraction’); if (priceWhole) { price = ‘$’ + priceWhole.textContent.trim() + (priceFraction ? priceFraction.textContent.trim() : ”); }
let rating = null; const ratingEl = doc.querySelector(‘[data-hook=”average-star-rating”] .a-icon-alt’); if (ratingEl) { const match = ratingEl.textContent.match(/(\d+\.\d+)/); if (match) rating = match[1]; }
let reviewCount = null; const reviewEl = doc.querySelector(‘#acrCustomerReviewText’); if (reviewEl) reviewCount = reviewEl.textContent.trim();
if (price) { const priceEl = document.getElementById(‘price-‘ + asin); if (priceEl) { priceEl.innerHTML = price; priceEl.style.animation = ‘pulse 0.5s’; } }
// if (rating) { // const ratingEl = document.getElementById(‘rating-‘ + asin); // if (ratingEl) { // const stars = ‘⭐’.repeat(Math.floor(parseFloat(rating))); // ratingEl.innerHTML = stars + ‘ ‘ + rating + ‘/5’; // ratingEl.style.animation = ‘pulse 0.5s’; // } // }
if (reviewCount) { const reviewsEl = document.getElementById(‘reviews-‘ + asin); if (reviewsEl) { reviewsEl.innerHTML = reviewCount; reviewsEl.style.animation = ‘pulse 0.5s’; } }
if (updateTimeEl) { const now = new Date(); const timeStr = now.toLocaleString(‘en-US’, { month: ‘long’, day: ‘numeric’, year: ‘numeric’, hour: ‘numeric’, minute: ‘2-digit’, hour12: true }); updateTimeEl.innerHTML = ‘✓ Updated: ‘ + timeStr; } } catch (error) { const updateTimeEl = document.getElementById(‘update-time-‘ + asin); if (updateTimeEl) updateTimeEl.innerHTML = ‘✓ Cached data’; } }
const style = document.createElement(‘style’); style.textContent = `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }`; document.head.appendChild(style);
function loadAllProducts() { products.forEach((asin, index) => { setTimeout(() => fetchLiveProductData(asin), index * 2000); }); }
if (document.readyState === ‘loading’) { document.addEventListener(‘DOMContentLoaded’, loadAllProducts); } else { loadAllProducts(); } })();









