Announcement

Collapse
No announcement yet.

Help needed - I think I have more versions of JS than needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help needed - I think I have more versions of JS than needed

    I would be grateful for any pointers as I feel I may have some superfluous code. Am I right in thinking that if I have
    a) jquery-3.3.1.min.js, then I don't need jquery-1.11.1.min.js?
    b) jquery.bxslider.min.js?DAYNO=VDGA I don't need /shop/jquery.bxslider.css

    Thanks

    Phil


    URL Transfer Size Potential Savings
    /shop/actiniccore.js?DAYNO=VDGA 2.0 KiB 180 ms
    /shop/actinicextras.js?DAYNO=VDGA 14.6 KiB 630 ms
    /shop/actinicsearch.js?DAYNO=VDGA 23.7 KiB 930 ms
    /shop/bootstrap.min.js 16.1 KiB 630 ms
    /shop/cookieconsent.min.css 1.6 KiB 480 ms
    /shop/cookieconsent.min.js 7.5 KiB 330 ms
    /shop/dynamic.js?DAYNO=VDGA 6.2 KiB 330 ms
    /shop/jquery.bxslider.css 0.4 KiB 480 ms
    /shop/jquery.bxslider.min.css 1.3 KiB 480 ms
    /shop/jquery.bxslider.min.js 8.8 KiB 480 ms
    /shop/jquery.bxslider.min.js?DAYNO=VDGA 8.8 KiB 480 ms
    /shop/jquery-1.11.1.min.js?DAYNO=VDGA 38.3 KiB 1,380 ms
    /shop/jquery-3.3.1.min.js 34.9 KiB 1,380 ms
    /shop/jquery-ui-1.12.1-datepicker.js 12.9 KiB 630 ms
    /shop/popper.min.js 7.9 KiB 330 ms
    /shop/recentproductssupport.js?DAYNO=VDGA 3.4 KiB 180 ms
    /shop/responsive.js?DAYNO=VDGA 3.2 KiB 180 ms
    Phil Howell
    Director
    Intuition Un Ltd
    www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

    Also
    Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
    www.natalhypnotherapy.co.uk Hypnobirthing in English
    www.natalhypnotherapy.fr Hypnobirthing in french
    www.hypnobirthingclass.online Online antenatal training

    #2
    Loading 2 version of jQuery is pointless and can actually cause problems. It should be safe to comment out the line that loads jquery-1.11.1.min.js.

    The 2 references to jquery.bxslider.min.js actually point to the same file so only one is needed. Keep the one with the DAYNO... stuff.

    The line loading jquery.bxslider.css is superfluous as another line loads a minimised version of this.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      As always, many thanks Norman.
      Phil Howell
      Director
      Intuition Un Ltd
      www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

      Also
      Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
      www.natalhypnotherapy.co.uk Hypnobirthing in English
      www.natalhypnotherapy.fr Hypnobirthing in french
      www.hypnobirthingclass.online Online antenatal training

      Comment


        #4
        How would you check a site to see what is loading?
        Regards

        Jason

        Titan Jewellery (Swift Design)
        Zirconium Rings
        Damascus Steel Rings

        Comment


          #5
          Go here
          https://developers.google.com/speed/pagespeed/insights/
          enter the page you want to check
          e.g. https://www.sitename.co.uk/
          Scroll down to 'Opportunities' and
          'Eliminate render-blocking resources' tap to open and you will see a list of what is loading.

          Phil Howell
          Director
          Intuition Un Ltd
          www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

          Also
          Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
          www.natalhypnotherapy.co.uk Hypnobirthing in English
          www.natalhypnotherapy.fr Hypnobirthing in french
          www.hypnobirthingclass.online Online antenatal training

          Comment


            #6
            Modern browsers can do this. E.g. in Chrome, view the page in question. Type Control/Shift/J to get the Console. Select Network, then All. Refresh the page and you should see a big list.
            Note that you can select just image, CSS, JavaScript, etc.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Many thanks Phil & Norman,

              I will have a look.
              Regards

              Jason

              Titan Jewellery (Swift Design)
              Zirconium Rings
              Damascus Steel Rings

              Comment

              Working...
              X