Top 5 Best Lightweight Vacuum Cleaner: Expert Picks

Tired of lugging around a heavy vacuum cleaner that makes cleaning feel like a chore? You’re not alone! Many of us are looking for a more convenient way to keep our homes spotless, especially when dealing with stairs, multiple rooms, or just daily quick tidies. That’s where the best lightweight vacuum cleaner comes into play, transforming mundane tasks into effortless routines. These nimble cleaning machines offer powerful suction without the bulk, making them perfect for quick spills, tackling pet hair, or comprehensive whole-house cleaning. We’ve put together a list of top-performing, easy-to-handle models to help you find the perfect match for your needs. Let’s dive in and discover your next favorite cleaning companion!

Quick Product Comparison

.modern-product-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
font-size: 14px;
}
.modern-product-table thead th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 10px 8px;
text-align: left;
font-weight: 600;
font-size: 15px;
border: none;
}
.modern-product-table tbody td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.modern-product-table tbody tr:last-child td {
border-bottom: none;
}
.product-name {
font-weight: 600;
color: #2d3748;
font-size: 14px;
line-height: 1.4;
max-width: 300px;
}
.product-name a {
color: inherit;
text-decoration: none;
}
.product-name a:hover {
color: #ff6b35 !important;
}
.product-image-cell {
text-align: center;
width: 80px;
}
.product-image-cell img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid #e2e8f0;
transition: transform 0.2s ease;
}
.product-image-cell img:hover {
transform: scale(1.05);
}
.price-button-cell {
text-align: center;
width: 140px;
}
.price-button {
display: inline-block;
background: linear-gradient(135deg, #ff9900 0%, #ff6b35 100%);
color: white;
padding: 8px 12px;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
box-shadow: 0 2px 8px rgba(255,153,0,0.3);
transition: all 0.2s ease;
white-space: nowrap;
}
.price-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}
@media (max-width: 768px) {
.modern-product-table {
font-size: 13px;
}
.modern-product-table thead th {
padding: 8px 6px;
font-size: 14px;
}
.modern-product-table tbody td {
padding: 8px 6px;
}
.product-name {
font-size: 13px;
max-width: 200px;
}
.product-image-cell img {
width: 50px;
height: 50px;
}
.price-button {
padding: 6px 10px;
font-size: 12px;
}
}
@media (max-width: 480px) {
.modern-product-table {
font-size: 12px;
}
.modern-product-table thead th {
padding: 6px 4px;
font-size: 13px;
}
.modern-product-table tbody td {
padding: 6px 4px;
}
.product-name {
font-size: 12px;
max-width: 150px;
}
.product-image-cell {
width: 60px;
}
.product-image-cell img {
width: 40px;
height: 40px;
}
.price-button-cell {
width: 120px;
}
.price-button {
padding: 5px 8px;
font-size: 11px;
}
}

<!–

–>

<!–

–>

<!–

–>

<!–

–>

<!–

–>

Product Image Check Price
1. Amazon Basics Lightweight Corded Stick Vacuum Cleaner, 2-in-1 Convertible to Handheld, Washable HEPA… Amazon Basics Lightweight Corded Stick Vacuum Cleaner, 2-in-1 Converti ⭐ 4.2/5 Check Price
2. Electrolux Ergorapido Pet Cordless 2-in-1 Vacuum Cleaner with Motorized Nozzle for Easy Pet Hair Rem… Electrolux Ergorapido Pet Cordless 2-in-1 Vacuum Cleaner with Motorize ⭐ 4.2/5 Check Price
3. Shark Rocket Pet Plus Lightweight Corded Stick Vacuum, LED Headlights, Converts Handheld, Pet Attach… Shark Rocket Pet Plus Lightweight Corded Stick Vacuum, LED Headlights, ⭐ 4.4/5 Check Price
4. Shark Navigator Lift-Away Upright Vacuum with HEPA Filter, Anti-Allergen, Swivel Steering for All Fl… Shark Navigator Lift-Away Upright Vacuum with HEPA Filter, Anti-Allerg ⭐ 4.4/5 Check Price
5. Shark Navigator Lift-Away Upright Vacuum, HEPA Filter, Swivel Steering, for Pet Hair and All Floors…. Shark Navigator Lift-Away Upright Vacuum, HEPA Filter, Swivel Steering ⭐ 4.4/5 Check Price

Our Top 5 Best Lightweight Vacuum Cleaner Reviews – Expert Tested & Recommended

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

🏆 Best Choice

1. Amazon Basics Lightweight Corded Stick Vacuum Cleaner, 2-in-1 Convertible to Handheld, Washable HEPA Filter

Amazon Basics Lightweight Corded Stick Vacuum Cleaner, 2-in-1 Convertible to Handheld, Washable HEPA Filter

The Amazon Basics lightweight corded stick vacuum cleaner is an excellent choice for anyone seeking versatile and efficient cleaning without breaking the bank. Its 2-in-1 design easily converts from a stick vacuum to a handheld unit, making it incredibly adaptable for various cleaning tasks around the home. With a robust 300W motor and a washable HEPA filter, it promises both powerful suction and cleaner air.

Key Features That Stand Out

  • ✓ Versatile 2-in-1 Design: Easily switches between stick and handheld modes.
  • ✓ Strong Suction Power: A 300W motor ensures effective cleaning on hard floors and low-pile carpets.
  • ✓ Advanced HEPA Filtration: Captures 99.97% of particles as small as 0.3 microns for improved air quality.
  • ✓ Lightweight and Compact: Its slim size and light build make it easy to maneuver and store.

Why We Recommend It

We recommend this Amazon Basics lightweight vacuum cleaner because it offers impressive cleaning capabilities and filtration at an accessible price point. Its versatility means you can tackle everything from floor cleaning to dusting shelves with the same device, and the HEPA filter is a huge bonus for allergy sufferers. It’s a fantastic everyday cleaner for smaller homes or as a supplementary vacuum.

Best For

This vacuum is best for individuals in apartments or smaller homes with hard floors and low-pile carpets, especially those looking for an affordable and versatile lightweight vacuum solution.

Pros and Cons

Pros:
  • Extremely lightweight and easy to maneuver.
  • Effective 2-in-1 design for floor and handheld cleaning.
  • Washable HEPA filter for improved air quality.
  • Excellent value for its price and features.
Cons:
  • Corded design limits reach and requires outlet changes.
  • Not ideal for high-pile carpets.
  • Dust cup capacity might be small for larger homes.

Customer Reviews

Customer Review: “Very straight forward product, decent suction, good value for money. The cord length is enough for an average room. Assembly of product is very easy. The slim size of the body and vacuum part makes it reachable in tight spaces, which makes cleaning easier. Kids dropped it a few times and showed no s”

Customer Review: “This Amazon Basics 2-in-1 stick vacuum is a fantastic addition to my apartment. At just 3.9 lbs, it’s lightweight and maneuverable, making it a breeze to clean my bedroom, bathroom, and living room. The suction power is perfectly adequate for daily cleaning in smaller spaces.What I love most about t”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

⭐ Editor’s Choice

See also  5 Best 10-Inch Miter Saws: Expert Picks for Quality Cuts

2. Electrolux Ergorapido Pet Cordless 2-in-1 Vacuum Cleaner with Motorized Nozzle for Easy Pet Hair Removal

Electrolux Ergorapido Pet Cordless 2-in-1 Vacuum Cleaner with Motorized Nozzle for Easy Pet Hair Removal

For pet owners seeking a truly agile cleaning solution, the Electrolux Ergorapido Pet is a standout cordless lightweight vacuum. This 2-in-1 model excels at tackling stubborn pet hair with its specialized motorized nozzle, while also offering the freedom of cordless operation. Its enhanced maneuverability and bright LED lights make cleaning even the trickiest spots a breeze.

Key Features That Stand Out

  • ✓ Motorized Pet Nozzle: Specifically designed to effectively remove pet hair from various surfaces.
  • ✓ Cordless Convenience: Offers freedom of movement without being tethered to an outlet.
  • ✓ 180° EasySteer Maneuverability: Effortlessly glides around furniture and obstacles.
  • ✓ LED Nozzle Lights: Illuminates dirt and dust in dark areas, ensuring thorough cleaning.
  • ✓ Detachable Hand Unit: Converts into a handheld vacuum for versatile cleaning of upholstery and cars.

Why We Recommend It

If you have pets, this lightweight vacuum cleaner is an absolute game-changer. The specialized pet nozzle and the cordless design make it incredibly efficient for daily cleanups of pet hair and dander. Its excellent maneuverability and built-in lights ensure you don’t miss a spot, making it a powerful and convenient choice for homes with furry friends.

Best For

This vacuum is best for pet owners living in apartments or medium-sized homes who need a powerful, yet lightweight cordless vacuum specifically designed for efficient pet hair removal and versatile cleaning.

Pros and Cons

Pros:
  • Excellent at picking up pet hair with a specialized nozzle.
  • Cordless design offers superb freedom and flexibility.
  • Highly maneuverable with 180° swivel steering.
  • Integrated LED lights enhance visibility during cleaning.
Cons:
  • Battery run time might be limited for very large homes.
  • Charging requires docking the entire unit.

Customer Reviews

Customer Review: “Years ago I purchased the blue version of this vacuum to use at my Lake House. Liked it so much that I own 3 of them, one for each floor of the house for quick cleanups without running up and down stairs. I had one in my kitchen at my regular house. It needed replacing, because, as mentioned, I bou”

Customer Review: “This Electrolux battery powered sweeper is great! It is lightweight, easy to handle, reaches under most furniture. I haven’t timed the battery, but may not last as long as stated. But, it is long enough to vacuum my first floor of five rooms. It has two power settings. I use the higher one for woo”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

💰 Best Budget

3. Shark Rocket Pet Plus Lightweight Corded Stick Vacuum, LED Headlights, Converts Handheld, Pet Attachments

Shark Rocket Pet Plus Lightweight Corded Stick Vacuum, LED Headlights, Converts Handheld, Pet Attachments

The Shark Rocket Pet Plus is an outstanding option for those needing powerful cleaning specifically for pet hair, all within a lightweight vacuum cleaner design. This corded stick vacuum offers incredible versatility by converting into a handheld unit and comes with specialized pet tools. Its LED headlights ensure no dust bunny or pet fur goes unnoticed, making it a fantastic budget-friendly pick.

Key Features That Stand Out

  • ✓ Powerful Suction: Provides thorough deep carpet cleaning and robust pet hair pickup on all surfaces.
  • ✓ Ultra-Lightweight Versatility: Easily converts to a handheld vacuum for comprehensive floor-to-ceiling cleaning.
  • ✓ Specialized Pet Tools: Included attachments are designed to effectively capture embedded pet hair.
  • ✓ LED Headlights: Illuminates hidden debris, ensuring a spotless clean.
  • ✓ Corded Power: Offers consistent, fade-free suction without worrying about battery life.

Why We Recommend It

This Shark Rocket model stands out as a top contender for the best lightweight vacuum cleaner, especially for those with pets, and it won’t strain your wallet. The combination of powerful suction, specialized tools for pet hair, and its versatile stick-to-handheld conversion makes it highly effective for a wide range of cleaning needs. Plus, the LED headlights are a thoughtful addition that truly helps.

Best For

The Shark Rocket Pet Plus is best for pet owners or anyone on a budget who needs a powerful, versatile, and lightweight corded stick vacuum capable of deep cleaning carpets and hard floors, with a focus on pet hair removal.

Pros and Cons

Pros:
  • Exceptional suction power for its lightweight design.
  • Excellent at picking up pet hair on various surfaces.
  • Converts easily to a handheld for above-floor cleaning.
  • LED headlights reveal hidden dirt.
Cons:
  • Corded design may limit reach and require replugging.
  • Dust cup can be smaller than traditional uprights.

Customer Reviews

Customer Review: “This Shark is a great machine! It has a lot of power and very light weight and easy to use!! It found dirt and hair in an already cleaned carpet and the carpet did look clean! Wow! The price for this machine is extremely reasonable. You won’t go wrong buying this Shark!! Happy Cleaning!!”

Customer Review: “So far I have used this vacuum twice and It’s a pretty strong stick vacuum. It works really well on carpet and hard floors. I like that it is so versatile. You can use the tools with the stick extension or attach the tools directly to the vacuum for closer jobs. It definitely has a great suction whi”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

See also  5 Best Handheld Vacuum Car: Our Expert-Vetted Selections

4. Shark Navigator Lift-Away Upright Vacuum with HEPA Filter, Anti-Allergen, Swivel Steering for All Floors

Shark Navigator Lift-Away Upright Vacuum with HEPA Filter, Anti-Allergen, Swivel Steering for All Floors

The Shark Navigator Lift-Away is a versatile upright vacuum that combines powerful cleaning with an innovative lightweight design. Its signature Lift-Away feature allows you to detach the canister for portable cleaning, making stairs, furniture, and tight spaces much easier to reach. Equipped with a HEPA filter and Anti-Allergen Complete Seal Technology, it’s a superb choice for a cleaner, healthier home environment.

Key Features That Stand Out

  • ✓ Lift-Away Functionality: Detachable canister allows for portable cleaning above floors.
  • ✓ Anti-Allergen Complete Seal Technology: Traps 99.9% of dust and allergens within the vacuum.
  • ✓ HEPA Filter: Provides superior air filtration, ideal for allergy sufferers.
  • ✓ Swivel Steering: Offers excellent control and easy maneuvering around obstacles.
  • ✓ Multi-Floor Cleaning: Designed to effectively clean both hard floors and carpets.

Why We Recommend It

This Shark Navigator is a brilliant example of a lightweight vacuum cleaner that doesn’t compromise on power or features. The Lift-Away mode is incredibly practical for versatile cleaning, transforming it from an upright to a portable canister vacuum. For those concerned with allergens, its advanced filtration system is a major plus, making it a powerful and smart choice for any home.

Best For

This vacuum is best for individuals with allergies or pets in medium to large homes, needing a powerful, versatile, and relatively lightweight upright vacuum that can handle various floor types and above-floor cleaning tasks.

Pros and Cons

Pros:
  • Excellent for allergy sufferers due to HEPA filter and sealed system.
  • Lift-Away feature provides convenient portable cleaning.
  • Powerful suction for both carpets and hard floors.
  • Easy to maneuver with swivel steering.
Cons:
  • Still heavier than a stick vacuum when fully assembled.
  • Corded operation requires managing the power cord.

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”

Customer Review: “I actually was in the market for a new vacuum as there were parts breaking on my Bissell 2999. (Dust buildup inside the motor housing leading to bearing whine, brush roller wear that required modification to prevent additional damage, as well as handle damage that prevented the vacuum handle from st”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

5. Shark Navigator Lift-Away Upright Vacuum, HEPA Filter, Swivel Steering, for Pet Hair and All Floors

Shark Navigator Lift-Away Upright Vacuum, HEPA Filter, Swivel Steering, for Pet Hair and All Floors

Another excellent option from Shark, this Navigator Lift-Away Upright Vacuum is specifically tailored for homes with pets and diverse flooring. It maintains the convenient Lift-Away feature for portable cleaning and boasts a HEPA filter with Anti-Allergen Complete Seal technology to keep allergens at bay. With swivel steering and a brushroll shutoff, it’s a versatile and powerful contender in the lightweight vacuum cleaner category.

Key Features That Stand Out

  • ✓ Lift-Away Functionality: Transforms into a portable canister for effortless above-floor cleaning.
  • ✓ Anti-Allergen Complete Seal Technology + HEPA Filter: Traps 99.9% of dust and allergens within the vacuum.
  • ✓ Swivel Steering: Allows for easy navigation around furniture and tight corners.
  • ✓ Brushroll Shutoff: Provides a seamless transition from deep carpet cleaning to gentle bare floor cleaning.
  • ✓ Pet Hair Performance: Designed to effectively pick up pet hair from various surfaces.

Why We Recommend It

We highly recommend this Shark Navigator for its robust performance, especially in homes with pets and mixed flooring. It offers a great balance of power, portability, and advanced filtration. The ability to switch off the brushroll is a fantastic feature for protecting delicate hard floors, making it a truly adaptable and effective lightweight vacuum cleaner for comprehensive home cleaning.

Best For

This vacuum is best for families with pets or allergy concerns who require a powerful upright vacuum that is also easy to carry and maneuver for cleaning all floor types, including delicate hard floors and challenging stairs.

Pros and Cons

Pros:
  • Excellent for homes with pets and allergy sufferers.
  • Versatile Lift-Away feature for handheld use.
  • Brushroll shutoff protects hard floors.
  • Strong suction on both carpets and hard surfaces.
Cons:
  • Can be top-heavy when using the wand for high-reach areas.
  • The cord still limits ultimate freedom of movement.

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”

Customer Review: “I actually was in the market for a new vacuum as there were parts breaking on my Bissell 2999. (Dust buildup inside the motor housing leading to bearing whine, brush roller wear that required modification to prevent additional damage, as well as handle damage that prevented the vacuum handle from st”

Complete Buying Guide for Lightweight Vacuum Cleaner

Essential Factors We Consider

When searching for the best lightweight vacuum cleaner, several crucial factors come into play beyond just its weight. We carefully evaluate these to ensure you’re getting a powerful and convenient cleaning tool. First, consider the type of vacuum: stick, upright (with lift-away), or handheld. Stick vacuums are often the lightest and most agile, perfect for quick cleanups. Uprights with lift-away features offer more power and capacity while still providing portability. Handhelds are great for spot cleaning. Secondly, suction power is paramount; a lightweight vacuum shouldn’t mean weak cleaning. Look for models that boast strong suction for their size, capable of handling dirt, dust, and especially pet hair if you have furry companions. Lastly, filtration systems are important for air quality, particularly for allergy sufferers. HEPA filters and sealed systems help trap allergens, preventing them from recirculating into your home.

See also  Top 7 Best Rated Cordless Vacuums: Expert-Approved Picks

Budget Planning

Setting a budget is a practical first step when looking for a lightweight vacuum cleaner. The good news is that there are fantastic options available across various price points. Entry-level stick vacuums can offer great value for basic cleaning needs, often featuring 2-in-1 designs for versatility. Mid-range options usually introduce more powerful motors, better filtration, and perhaps cordless convenience. If you’re looking for premium features like extended battery life, advanced attachments, or specialized pet hair technology, you might lean towards a higher budget. Remember, investing a little more often translates to better durability and more advanced features that can significantly enhance your cleaning experience.

Final Thoughts

Ultimately, the best lightweight vacuum cleaner for you depends on your specific cleaning habits, home size, and flooring types. Whether you prioritize cordless freedom, specialized pet hair removal, or robust allergen filtration, there’s a lightweight model designed to meet those needs. Our top picks offer a balance of power, maneuverability, and thoughtful features that make daily cleaning less of a chore and more of a breeze. Don’t let a heavy, cumbersome vacuum hold you back from a spotless home!

Frequently Asked Questions

Q: What makes a vacuum cleaner “lightweight”?

A: A vacuum cleaner is generally considered “lightweight” if it weighs under 10-12 pounds, with many stick and handheld models weighing even less, often between 3 to 8 pounds. This low weight makes them significantly easier to lift, carry, and maneuver around the house, especially up stairs or in tight spaces.

Q: Are cordless lightweight vacuums as powerful as corded ones?

A: While corded vacuums traditionally offer consistent, unlimited power, modern cordless lightweight vacuums have made significant advancements. Many high-quality cordless models now offer comparable suction power to their corded counterparts for everyday cleaning tasks, though run time can be a limitation for very large homes or deep cleaning sessions.

Q: Can lightweight vacuums effectively clean pet hair?

A: Absolutely! Many lightweight vacuum cleaners, particularly stick and upright models, are specifically designed with pet owners in mind. Look for models that feature motorized brushrolls, anti-tangle technology, and specialized pet tools to effectively pick up embedded pet hair from various surfaces.

Q: Are lightweight vacuums suitable for all floor types?

A: Most lightweight vacuums are versatile and designed to clean multiple floor types, including hard floors, area rugs, and low-pile carpets. Some models even feature brushroll shutoff options or multiple power settings to optimize cleaning for different surfaces. For high-pile carpets, checking specific product reviews for performance on that type of flooring is always a good idea.

Q: How often should I clean or replace the filter in a lightweight vacuum?

A: The frequency depends on your vacuum’s usage and filter type. Washable filters should be cleaned regularly (e.g., monthly) according to the manufacturer’s instructions. Non-washable filters typically need to be replaced every 3-6 months, or more often if you have pets or allergies, to maintain optimal suction and air quality.

Choosing the best lightweight vacuum cleaner can truly transform your cleaning routine, making it less strenuous and more efficient. Whether you need a quick-grab stick vacuum for daily tidies, a versatile 2-in-1 for comprehensive cleaning, or a powerful machine to tackle pet hair, there’s a perfect match out there. We hope this guide has helped illuminate your options and pointed you toward a vacuum that will make your home sparkling clean with minimal effort. Don’t wait to upgrade your cleaning experience; explore our recommended picks today and enjoy a lighter, brighter home!

// Fetch real-time product data for all products when page loads
(function() {
const products = [‘B0D6QS74FM’, ‘B08VXCK86C’, ‘B00NGVF4II’, ‘B004Q4DRJW’, ‘B005KMDV9A’];
const affiliateTag = ‘arcweldingpro0d-20’;

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();
}
})();

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top