diff --git a/src/App.jsx b/src/App.jsx
index 6ce4bc1..4adce12 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,10 +1,8 @@
import useStoreWebsiteDataToLocalStorage from "./Hooks/App/useStoreWebsiteDataToLocalStorage";
-import useChangeLangDirOnKeys from "./Hooks/Helper/useChangeLangDirOnKeys";
import AppRoutes from "./Routes/AppRoutes";
function App() {
useStoreWebsiteDataToLocalStorage();
- useChangeLangDirOnKeys();
return ;
}
diff --git a/src/Components/Home/FeaturedSection/FeaturedSectionFeatures.jsx b/src/Components/Home/FeaturedSection/FeaturedSectionFeatures.jsx
index 851931a..4e6abc1 100644
--- a/src/Components/Home/FeaturedSection/FeaturedSectionFeatures.jsx
+++ b/src/Components/Home/FeaturedSection/FeaturedSectionFeatures.jsx
@@ -20,6 +20,7 @@ const FeaturedSectionFeatures = () => {
title={t(`${featuresTransData}.title`)}
description={t(`${featuresTransData}.description`)}
key={id}
+ loading="lazy"
/>
);
})}
diff --git a/src/Components/Home/OurProductsSection/OurProductsSection.jsx b/src/Components/Home/OurProductsSection/OurProductsSection.jsx
index 0029fe9..d21a812 100644
--- a/src/Components/Home/OurProductsSection/OurProductsSection.jsx
+++ b/src/Components/Home/OurProductsSection/OurProductsSection.jsx
@@ -21,6 +21,7 @@ const OurProductsSection = () => {
diff --git a/src/Components/Home/ThisMonthSection/ThisMonthSection.jsx b/src/Components/Home/ThisMonthSection/ThisMonthSection.jsx
index a294738..cef139a 100644
--- a/src/Components/Home/ThisMonthSection/ThisMonthSection.jsx
+++ b/src/Components/Home/ThisMonthSection/ThisMonthSection.jsx
@@ -22,7 +22,7 @@ const ThisMonthSection = () => {
-
+
);
};
diff --git a/src/Components/Home/TodaySection/TodaySection.jsx b/src/Components/Home/TodaySection/TodaySection.jsx
index b13ed46..e0aaeef 100644
--- a/src/Components/Home/TodaySection/TodaySection.jsx
+++ b/src/Components/Home/TodaySection/TodaySection.jsx
@@ -20,7 +20,7 @@ const TodaySection = () => {
-
+
{t("buttons.viewAllProducts")}
diff --git a/src/Components/Shared/MidComponents/ProductsSlider/ProductsSlider.jsx b/src/Components/Shared/MidComponents/ProductsSlider/ProductsSlider.jsx
index e05ed15..ca48b17 100644
--- a/src/Components/Shared/MidComponents/ProductsSlider/ProductsSlider.jsx
+++ b/src/Components/Shared/MidComponents/ProductsSlider/ProductsSlider.jsx
@@ -5,7 +5,11 @@ import ProductCard from "../../ProductsCards/ProductCard/ProductCard";
import s from "./ProductsSlider.module.scss";
import SliderButtons from "./SliderButtons/SliderButtons";
-const ProductsSlider = ({ filterFun = () => productsData, customization }) => {
+const ProductsSlider = ({
+ filterFun = () => productsData,
+ customization,
+ loading,
+}) => {
const filteredProducts = filterFun();
const sliderRef = useRef();
const { handleNextBtn, handlePrevBtn } = useSlider(sliderRef);
@@ -23,6 +27,7 @@ const ProductsSlider = ({ filterFun = () => productsData, customization }) => {
product={product}
key={product.id}
customization={customization}
+ loading={loading}
/>
))}
diff --git a/src/Components/Shared/MiniComponents/Feature/Feature.jsx b/src/Components/Shared/MiniComponents/Feature/Feature.jsx
index 5300ed6..f27d006 100644
--- a/src/Components/Shared/MiniComponents/Feature/Feature.jsx
+++ b/src/Components/Shared/MiniComponents/Feature/Feature.jsx
@@ -1,10 +1,16 @@
import s from "./Feature.module.scss";
-const Feature = ({ iconImg, iconAlt, title, description }) => {
+const Feature = ({
+ iconImg,
+ iconAlt,
+ title,
+ description,
+ loading = "eager",
+}) => {
return (
-
+
{title}
diff --git a/src/Components/Shared/Posters/SmallPoster.jsx b/src/Components/Shared/Posters/SmallPoster.jsx
index cf7a02e..26b4a63 100644
--- a/src/Components/Shared/Posters/SmallPoster.jsx
+++ b/src/Components/Shared/Posters/SmallPoster.jsx
@@ -7,7 +7,7 @@ const SmallPoster = ({ title, description, posterUrl }) => {
return (
-
+
{title}
{description}
diff --git a/src/Components/Shared/ProductsCards/ProductCard/ProductCard.jsx b/src/Components/Shared/ProductsCards/ProductCard/ProductCard.jsx
index ebaf113..794d883 100644
--- a/src/Components/Shared/ProductsCards/ProductCard/ProductCard.jsx
+++ b/src/Components/Shared/ProductsCards/ProductCard/ProductCard.jsx
@@ -19,6 +19,7 @@ const ProductCard = ({
showColors: false,
},
removeFrom,
+ loading = "eager",
}) => {
const { name, discount, img, id, addedDate } = product;
const {
@@ -62,6 +63,7 @@ const ProductCard = ({
src={img}
alt={name}
aria-label={name}
+ loading={loading}
onClick={navigateToProductDetails}
/>