How to Remove Unused CSS and JS in WordPress | Increase Website Speed 3x 🔥

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2024

ความคิดเห็น • 94

  • @wyattpowers9618
    @wyattpowers9618 2 ปีที่แล้ว +24

    This was exactly what I needed for one of my clients who has an Elementor Website. Saved me bunches of headaches and now I can greatly speed up a website in 1-2 hours and cut the loading time in 1/4-1/2 easily. Thanks for sharing!

    • @krecekist
      @krecekist 2 ปีที่แล้ว

      Hey Wyatt, i have got the same issue right now with elementors website (Houzez theme). But I am affraid from removing unused js or css which can be used later lets say for different devices or just for another page. Would you be so kind and share your experience with me please? I would really appreciat it.

    • @liamkirk9526
      @liamkirk9526 2 ปีที่แล้ว +1

      @@krecekist try backing up the site completely. Then try this method and then see how it goes. Test on multiple devices and if you have any issues you can restore your backup

  • @HBrsz
    @HBrsz ปีที่แล้ว +30

    BEFORE YOU DO THIS! You will definity break something on your site.
    The problem is that he is only checking the FCP (what you see when the page first loads) and then he REMOVES ALL css\js not being used for that part of the screen. IT DOESN'T MEAN THAT THE CSS/JS IS NOT BEING USED SOMEWHERE ELSE ON YOUR SITE.
    What you should do is treat your site as 2 different sections. Section one is what you see when loading the page for the first time (First Contentful Pait) - You should inline this css/js - So you will do as what he did in this video, but this modified css/js will only be used for the FCP. Section two you should defer the css/js. In other words, your css/js will load as the user scrolls down.

    • @MadMercsAirsoftReviews
      @MadMercsAirsoftReviews ปีที่แล้ว +3

      Thank you for this comment. I’m trying to learn about improving my websites speed but no one seems to teach things properly and it’s making me more fed up.

    • @jesusguzman761
      @jesusguzman761 ปีที่แล้ว +3

      I use this method but in a different way:
      After loading the site I scroll up and down, change the screen size, hoover over clickable elements, etc.
      The reason is that some CSS are triggered when the page loads, so we need to force the triggering, other wise surely you will brake something on your website. Yes the video is a good tip, but it needs to be more detailed. Otherwise people will find themselves frustrated when trying to fix their CSS.

    • @asherhunter774
      @asherhunter774 ปีที่แล้ว

      Thats what I wondering throughout watching this video, thank you Sir!

  • @mehwishhayaat6530
    @mehwishhayaat6530 8 หลายเดือนก่อน

    Amazing. Love this toturial. I Make 99 for mobile and 100 for Desktop. Thanks

  • @EmpStateXplorer
    @EmpStateXplorer หลายเดือนก่อน +1

    A great tutorial and clear explanation. Thanks for sharing friend. All the best.

  • @jmtornetta
    @jmtornetta 2 ปีที่แล้ว +7

    Thanks! Great tips, great explanation. Question: will the CSS/JS get regenerated though during a plugin/WP update (depending on the file)? If so, how do you recommend future-proofing this?

  • @tvheartlip2247
    @tvheartlip2247 ปีที่แล้ว +1

    Thanks to you, I was able to solve the problem. Thank you very much. The problem has been resolved and the speed has been increased. Thanks once again. I subscribed. I'll look forward to more good videos

  • @naimhossain4063
    @naimhossain4063 ปีที่แล้ว +1

    brother this one is very unique content but problem is if anyone try to add something new website it will be not work then it will be show error so for a beginner its very risky

  • @muhammadabubakrsiddique6419
    @muhammadabubakrsiddique6419 10 หลายเดือนก่อน +1

    Thanks for informative tutorials But One thing I want to know if remove css and js it breaks the website front-end layouts, why?

  • @JeremiahScavo
    @JeremiahScavo 2 ปีที่แล้ว

    Fantastic video. Was scared to execute so I called in a nerd to help me but pretty sure I could have pulled it off on my own if I needed to.

    • @paigeshue8860
      @paigeshue8860 ปีที่แล้ว +1

      Can you reply with that nerd's info?? I could still use his help with this

  • @jolavlog2371
    @jolavlog2371 3 ปีที่แล้ว +1

    Thanks for sharing your very informative vedio tutorial on how to increase website speed. Keep sharing.

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot. Please subscribe our Channel ❤️❤️❤️

  • @KATAKATAKEREN17
    @KATAKATAKEREN17 3 ปีที่แล้ว +1

    Very nice Remove Unused CSS and JS in WordPress, Good Job :)

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Glad to know it helps you. Please subscribe our channel and stay connected ❤️❤️❤️

  • @TheTwinsDay
    @TheTwinsDay 3 ปีที่แล้ว +2

    Thank you for sharing, Please take care

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks. Please subscribe our channel and stay connected ❤️❤️❤️

  • @Elmierdero1
    @Elmierdero1 2 ปีที่แล้ว +2

    exactly what I was looking for, thanks!, regards from Mexico

  • @fahadshaikh9715
    @fahadshaikh9715 22 วันที่ผ่านมา

    So red one is the unused css and have to remove it??

  • @AbdulQadirRabinas
    @AbdulQadirRabinas 2 หลายเดือนก่อน

    actually it works only single pages if i wanna remove for website so how can i remove for all pages because when i remove some css in home pages so may that codes working for other pages if you have any solution so please reply as soon as possible.
    Thanks from your viewers

  • @peacebuilder3164
    @peacebuilder3164 6 หลายเดือนก่อน

    Very useful tip. Thanks!

  • @WOXZE
    @WOXZE ปีที่แล้ว

    Thanks SO MUCH my Brother. You're the Man!

  • @un-oiseau
    @un-oiseau ปีที่แล้ว +1

    What if the CSS and JS files you are going to reduce the code of are files from plugins or libraries? So in case of plugins, every time it gets upgraded / updated, the spare codes will appear again. In case of 3-rd party libraries, say, Bootstrap or jQuery, we are not allowed to edit the core library files, are we? So, what to do for these cases?

    • @ferdinandfriedl4183
      @ferdinandfriedl4183 ปีที่แล้ว +1

      Yes - thats a problem he hasen't talked about. If you simply use this method, it could be that you delete code, you need in other areas of you website. For example, you could delete the whole woocomerce css file, because you may only need 1% of it on your front page, but the problem is, on other pages you may need 70% of it. That's the problem of an CMS in general!

  • @karimhorri3463
    @karimhorri3463 ปีที่แล้ว

    thank you for the tuto, but won't the WooCommerce update newly add what you have deleted????

  • @garybarrientos
    @garybarrientos 2 ปีที่แล้ว +1

    Thanks for sharing! What happens if a link contains all the code wrong, with no blue lines? Do I delete that CSS file, or do I upload it back empty?

    • @RbnWebSolutions
      @RbnWebSolutions  2 ปีที่แล้ว +1

      Please subscribe our channel 🙏 Without your subscribe we cant move 😒

  • @charitodagupion7398
    @charitodagupion7398 3 ปีที่แล้ว +1

    Nice, keep safe and may God bless you always, i do diy and recycling, friend from Philippines v

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot. Please subscribe our channel and stay connected 😅

  • @abdoalawdi9655
    @abdoalawdi9655 หลายเดือนก่อน

    I deleted all files with 100% unused codes, but after refreshing the files are still there.
    What should i do with this issue?

  • @juegosjuegos_pe
    @juegosjuegos_pe 2 ปีที่แล้ว

    Thanks a lot This help me to improove performance happy fine your video

    • @RbnWebSolutions
      @RbnWebSolutions  2 ปีที่แล้ว

      Please subscribe our channel 🙏 Without your support we can't move 🙂

  • @maheenkhan4478
    @maheenkhan4478 10 หลายเดือนก่อน

    Will it be safe for beginner?

  • @Nyescorner0717
    @Nyescorner0717 3 ปีที่แล้ว +2

    Great tutorial
    It takes a skilled-full individual to learnt this tutorial
    Good job! Lk5

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว +1

      Thank you so much. Please subscribe.

  • @mtalha336
    @mtalha336 2 ปีที่แล้ว

    Lot of thanks. It's really I want...

  • @TamilThagaval
    @TamilThagaval 2 ปีที่แล้ว

    thank you man, you are a genius, loved this video

  • @malvikasirur
    @malvikasirur ปีที่แล้ว

    Hi I got the css on amp how can I do it. I checked in file manager I didn’t find any css even in css folder

  • @Nazir-WalkAroundTheCity
    @Nazir-WalkAroundTheCity 3 ปีที่แล้ว +2

    👍✋Extra Good job 👌🤝
    Wow. Great view, I love to see new places 👍
    Great movie 👍 Bravo 👋
    And I have a new movie from a walk around the city 😊
    Yours sincerely, DJ Janusz from Warsaw Poland ✌️ 🇵🇱✋

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Hey dj play the music 😅 Subscribe us

  • @alrpreset1585
    @alrpreset1585 ปีที่แล้ว

    After i do that my website speed increases but photos and icons not showing up any solution im beginner

  • @skillyroy3289
    @skillyroy3289 2 ปีที่แล้ว +1

    sir, i watch your video and remove all unnecessary CSS from the files but I find an issue in my website.
    my website menu has been removed please guide what happened to my website.

    •  10 หลายเดือนก่อน

      yapma sakın

  • @fatihod
    @fatihod ปีที่แล้ว

    I was looking for this. Thankss

  • @chamaramadushanka.
    @chamaramadushanka. ปีที่แล้ว

    What if that red colored code snippet is used somewhere else in the website? Then that page would break right?

    • @cika3939
      @cika3939 7 หลายเดือนก่อน

      exactly

  • @michaelsguitarmusic8466
    @michaelsguitarmusic8466 2 ปีที่แล้ว +1

    This is so good, thanks so much. But, what if my file is minified. Can I still do this?

  • @DlegendRC
    @DlegendRC 3 ปีที่แล้ว +3

    Keep your passion for what you love, because success comes from really hard work. Motivation from others is a helpful tool to keep us on track to our goal, so push the limits and be extraordinary, I supported you! 😍❤️

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว +1

      Thanks for your motivation. Subscribe us and stay connected. Much love ❤️

    • @DlegendRC
      @DlegendRC 3 ปีที่แล้ว +2

      @@RbnWebSolutions You're welcome and I appreciated so much for your kindness. Stay connected my friend ❤🙏

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      @@DlegendRC Much love

  • @QarlKittyOrgan
    @QarlKittyOrgan 3 ปีที่แล้ว +1

    Very informative. I’ll see more of you here

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot.. Subscribe and stay connected.

  • @ChrisGaultHealthyLiving
    @ChrisGaultHealthyLiving 3 ปีที่แล้ว +2

    Awesome informative tutorial! Nice job!

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot. Please subscribe our channel and stay connected ❤️❤️

  • @jenniferalex7584
    @jenniferalex7584 2 ปีที่แล้ว

    Thanks so much

  • @mtalha336
    @mtalha336 2 ปีที่แล้ว

    Thanks from pakistan

  • @einszweiweltstein2574
    @einszweiweltstein2574 2 ปีที่แล้ว

    You're the best thanks

  • @iahmed92
    @iahmed92 2 ปีที่แล้ว +3

    You are removing CSS not being used on the home page.... what if that CSS will be being used on any other page?

    • @SinhalaWeightLossGuru
      @SinhalaWeightLossGuru 2 ปีที่แล้ว +1

      I was about to ask the same, and specially media queies css will probably get us wrong with this method..

  • @somborrr
    @somborrr 2 ปีที่แล้ว +1

    Subscribed. ♥️

  • @makszabavchuk3372
    @makszabavchuk3372 14 วันที่ผ่านมา

    this is can be great only for one page site doesnt for anyone

  • @sojibone
    @sojibone หลายเดือนก่อน

    You are pro

  • @Ahmadabbasi20
    @Ahmadabbasi20 4 หลายเดือนก่อน

    it disturb the remaining functionality

  • @ashfakahmedashik
    @ashfakahmedashik 2 ปีที่แล้ว

    I did this on my website & it just crashed some features. also some other pages design got problem.

    • @RbnWebSolutions
      @RbnWebSolutions  2 ปีที่แล้ว

      Have to do carefully. If you remove necessary codes then site will crash.

  • @Cinewood910
    @Cinewood910 2 ปีที่แล้ว

    Make video for blogger please...

  • @CouponingWithVanessa
    @CouponingWithVanessa 3 ปีที่แล้ว +1

    helpful video. keep it up

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot. Subscribe and stay connected ❤️

  • @marlaer
    @marlaer 2 ปีที่แล้ว

    How to show only this code in red?

  • @adeelkhanblogger
    @adeelkhanblogger ปีที่แล้ว

    is anybody here who solved this problem following this video?
    is it safe to practice because it looks non technical to me.

  • @Nyescorner0717
    @Nyescorner0717 3 ปีที่แล้ว

    Support you all the way

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thank you so much. Please subscribe.

  • @erajgayurov3966
    @erajgayurov3966 2 ปีที่แล้ว

    thanks a lotttt))))

  • @miradevi1454
    @miradevi1454 2 ปีที่แล้ว

    very good video sir

  • @rhoystv7489
    @rhoystv7489 3 ปีที่แล้ว +2

    Nice tutorial, sending back my support.

    • @RbnWebSolutions
      @RbnWebSolutions  3 ปีที่แล้ว

      Thanks a lot. Stay connected and subscribe ❤️😍

  • @Kakfajarchannel
    @Kakfajarchannel 3 ปีที่แล้ว +1

    nyimak kakak....

  • @sujonhossensager2773
    @sujonhossensager2773 2 ปีที่แล้ว

    Nice

  • @WaqasAhmed-py9uf
    @WaqasAhmed-py9uf 2 ปีที่แล้ว

    Good job 👌

  • @youandmestories8857
    @youandmestories8857 3 ปีที่แล้ว +2

    So good information and great content my dear friend... I send you a cup of coffee here... Greetings fro.m me, Angel. LikklikkSbc:)

  • @cika3939
    @cika3939 7 หลายเดือนก่อน

    This is a very bad method, never do it! These codes may be activated in different actions of the site.

  • @saqibmehar9907
    @saqibmehar9907 ปีที่แล้ว

    tare tote poti English de koi samaj ni aa raie