1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Javascript help

Discussion in 'Scripts' started by Letzride, Dec 16, 2019.

  1. #1
    Hi all,

    Hoping this is the right area to post this. I had made a post in the wordpress section, but I don't think I am getting much traction. I am trying to work through fixing some deffered javascript on my site that is blocking my slideshow images from working.

    I downloaded a plugin called WP-Rocket to help speed up my site which has worked pretty good minus this issue. I reached out to their support which gave me their fix and I am not sure if I am not doing it correctly or maybe it is not the answer.

    Everything I know website wise I have been trying to self teach myself to keep the website a float - so bare with me and my limited knowledge when I try to explain this issue.

    Issue: In my mobile version of the site - this page and others that have slideshow images do not display: https://highperformancejunkies.com/how-to-guides/rust-corrosion-repair-a-diy-guide/

    Error codes as outline by the support team: https://share.getcloudapp.com/RBuXvnpz

    They then went on to say: "I checked them and I see that one of the errors is pointing to this file https://c0.wp.com/p/jetpack/8.0/_inc/blocks/slideshow/view.js, which is actually deferred"
    SEMrush
    The Fix: They said to download the plugin they have here and follow the instructions. This included editing the plugin before I activate it: https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js

    I tried the following 3 edits into the plugin and none seemed to solve the problem:

    $excluded_files[] = 'https://c0.wp.com/p/jetpack/(.*).js
    $excluded_files[] = '/jetpack/8.0/_inc/blocks/slideshow/view.js'
    $excluded_files[] = '/slideshow/view.js'

    Questions:

    - Was this not the right fix?
    - Is this only part of a fix?
    - Did I make an error in how I excluded the files?

    Many thanks to anyone who can help
     
    Letzride, Dec 16, 2019 IP
    SEMrush