• laxal

    (@laxal)


    Hi,

    thanks for this plugin it’s working great on three of my websites!… except that I have another fourth website for wich I have troubles with AsyncJS.

    Explanation:

    Because of the results given by GTmetrix, I’m using your plugin to defer parsing of Javascript. I’m using also W3TC. My websites use the same theme (child theme).
    It’s working great with 3 of them, no issues at all and the result is fine with GTmetrix.

    But for the fourth website, when AsyncJS is enable and only when I’m disconnected from the admin backend, the picture on the homepage is missing et the menu is a mess.

    I tried to exclued first the entire theme, no change. The I tried to exclude each plugin wich is not used on the other three websites, no change.
    This fourth website with this issue is uses woo comerce. Maybe that’s the reason…

    Hope my explanations are not too confused and thanks for your reply.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter laxal

    (@laxal)

    Plus :

    After checking a last time the other three websites, I noticed that it’s only properly functionning for one of them…

    So only one is ok…

    Too bad…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So what JS errors do you see on the browser console when the image doesn’t load laxal?

    Thread Starter laxal

    (@laxal)

    What I see on the web browser console :

    TypeError: api is undefined supersized.3.2.7.min.js:96:13

    Isn’t that strange that the website is functionning ok when I’m logged in as administrator but not at all when I’m not?…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm … can you share the URL of one of the sites on which you see this happening?

    Thread Starter laxal

    (@laxal)

    Well, I can’t leave the sites like that, you know, I have to deactivate the plugin in order to the sites to function properly…

    I wonder if I could use instead of your plugin a line of code that I’ve founded on the internet, in the fonction.php file… I don’t know, maybe it’s a solution…?
    What do you think?

    Thread Starter laxal

    (@laxal)

    Some news!

    I tried to use instead of AJS your Autoptimize plugin.
    The result was first exactly the same, no images on my homepage. But after some tries in the settings, I found that after unchecking the “Aggregate JS-files” checkbox, it was functioning ok and that GTmetrix gave a good enough report…

    So…

    But I would like to understand what’s going on… maybe it’s behind my skills, though…

    Could I use AJS in conjunction with AO?… maybe if I don’t touch the javascript defer in AJS, I can gain more speed?… Or maybe Im totally wrong, don’t know!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, ideally as much JS as possible is loaded late (deferred or asynced). both AO and AsyncJS can help with that; AO when aggregating JS, in which case the aggregatdd JS is deferred or AsyncJS which defers or asyncs the JS. Combining them _can_ be done, but is not always needed.

    What you’ll have to do if you want better performance is find out which JS to exclude from either AsyncJS or Autoptimize JS aggregation that will allow the image to show?

    Thread Starter laxal

    (@laxal)

    … well… thanks, I will try to find this JS that allow the image to show… won’t be an easy task to me, but I’ll work on it…

    By the way, if I may ask, what is the difference between defer and async? How to choose between them?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    defer: not render-blocking, script execution is done just before document load event, script execution honors the original order

    async; download is not render-blocking, script execution is done immediately after download (and execution _might_ be render-blocking, no guarantee it will honour original order (and as such errors might occur is one script depends on another)

    so in general defer is the better choice.

    Thread Starter laxal

    (@laxal)

    Ok, thanks for your help.
    I’ll report here when I’ll find a solution.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, if you can share your site’s URL I can always have a quick look at what JS might be responsible for that homepage image πŸ™‚

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Homepage image missing’ is closed to new replies.