• Resolved cloudshift

    (@cloudshift)


    Since the last update the PlugIn in no usable anymore. All our website (more than 50!!!) are not only super slow but scripts doensn’t work like expected anymore. Especially gsap.js related animations are not working at all. There are no JS errors in the console, and we can’t figure out what happened. We love your plugin but unfortunately we now have to deinstall it an all our websites. Last update was not an improvement but broke everything!

    It seems like JS Files are not processes at all even if the control field in the settings is selected.

    All our FVM Settigs in over 50 websites are has been deleted on this upgrade too! Why?? This is a catastrophe for us!!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter cloudshift

    (@cloudshift)

    After the latest update I get new Errors (see screenshot).

    https://www.dropbox.com/s/svf08jbtlazgnsf/screenshot_17.png?dl=0

    We’re testing on an internal server. The URL with the wrong JS file is: https://www.myserver.de/wp-content/cache/fvm/min/myserver.de/1609418930-85e1d64ff2813503ae6042205fbfdad20f976cd6.footer.min.js

    If you need live access I have to set up a new test environment and make it accessible from the web.

    Thanks for your help again and happy new year!

    Thread Starter cloudshift

    (@cloudshift)

    Yes, it happens on the latest versions too. Some files I’m we’re using for example are:

    https://www.cloudshift.de/wp-content/themes/Atomic/js/app-atomic/app-atomic.js.php
    or
    https://www.cloudshift.de/wp-content/themes/Atomic/js/app-gsap/app-gsap.js.php

    I think it’s within these resources the problems happens on aggregation or minifying.

    Thanks again!!

    Plugin Author Raul P.

    (@alignak)

    Hi,

    Thank you for reporting.

    I created a php file with the same uri path for testing, and the plugin did not merge the php code… however it left it alone, which was not intended.

    Please try version 3.0.5 as it should be working and merging fine now.

    Thread Starter cloudshift

    (@cloudshift)

    Unfortunately still no change on version 3.0.7. Still getting these “Uncaught SyntaxError: Unexpected token ‘<‘” in the console on nearly every website.

    Plugin Author Raul P.

    (@alignak)

    And what code is it on the Unexpected token < part?
    Is it PHP code?
    And obvious question, but have you purged FVM cache?

    Have you also tried to disable js minification?
    Unexpected token, can be a minification issue rather than merging.

    If you can contact me via fastvelocity.com contact form with wp-admin access to a test site, that would be helpful. I am definitely not getting any php files merged on any of my tests with multiple plugins and different themes so I would need to look specifically at your site.

    Thread Starter cloudshift

    (@cloudshift)

    Have a look at our main website. You can see the error on the console:

    https://www.cloudshift.de

    The latest version is installed right now and all caches have been cleared. I will recover the backup in about an hour to recover the website.

    Second problem is that even if we add jquery to the ignore list it is now loaded in the header instead of the footer. The PSI score goes down in a very bad way. Why?

    Plugin Author Raul P.

    (@alignak)

    I don’t think that this is something I can fix by just looking at the frontend, that’s why I asked to contact me directly.

    However, looking at the code, the PHP code is indeed there, but this could be for some other reason other than to be opened directly. It could be cached somewhere that you cannot purge, especially if you use disk caching or opcache.

    The issue however, is that I have replicated a fresh install and used the same exact path for that php file and it didn’t get merged.

    Can you check if the php file itself doesn’t have any invisible character before <?php ? (I only check for <?php if it’s in the beginning of the string)

    I can add a more broad check, but I would need to test it myself before the next release update, so again, you can contact me directly.

    In regard of your other questions:

    a) You do not need to restore a backup. You can simply add .php to the JS ignore settings and they will be left alone until we can sort it out.

    b) You need to understand that jQuery is not meant to be in the footer. If it can be in the footer, it means it can be deferred. If it cannot be deferred due to inline code dependencies, it has to go in the header so it’s available when the body starts.

    If you put jquery in the footer, it’s still render blocking… hope you understand that, it’s just render blocking a while later.

    Looking at your site, the only jquery dependency I see happens to be in the footer, for the cookie check. But then, your jquery would need to come before this for it to work, so it’s not exactly in the footer, but rather in the body.

    For your case, you can copy the recommended settings for the render blocking scripts and leave that option empty. You can then copy it to the defer section, so in this case, you can defer jquery so it doesn’t get render blocking.

    However, because you still have a jquery reference in inline scripts, you also now need to add jQuery( to the inline dependencies option, so that whenever an inline script has the snippet jQuery( it will be wrapped around with a function to make it also deferred and load after jquery (which is now being deferred).

    Finally, if you render block jquery on the header because it’s ignored, yes, it will affect your scores. However, if you merge it in the header section, the resulting file it will have a preload header which will allow it to be downloaded before it’s render blocking.

    Of course, your compression level may be slowing down the time to first byte, and that is why it shows up as render blocking. But if you were the merge jquery in the header, and add for example, a propper cdn like bunnycdn.com … it will most likely, not show up as render blocking anymore, or at least, it won’t affect your scores because it will be under 100ms (dependending on the server, layout, etc).

    FVM allows you to fine tune all these settings, and I have no idea why on your site, it’s merging of PHP files. I can find out, but I need proper access.

    I will add an option to bypass file merging from the disk and instead, make the requests via http. But merging scripts via http is going to be slower, even if we cache them after the first request, because you have a lot of files to merge.

    I’ll also add another extra check to try and detect more accurately the .php files, but like I said, I cannot replicate it on any of my test setups.

    I will do what I can to apply any fixes on FVM and get it to work, but if you are serious about speed optimization, you can also check my profile and hire me for a more complete optimization.

    Even with the full potential from FVM, there is still plenty of stuff you can do to optimize it further… but this has to be audited, not just by installing a bunch of plugins.

    I finished looking at the frontend, so you can now do whatever you wish to do.

    Thread Starter cloudshift

    (@cloudshift)

    I send you temp access to our websites. If it is too complicates we will stay on the old version 2. It used to worked perfectly an we had great scores and speed. There were never problems with php files too and it never touched the position of the jquery file. To be honest we still don’t get the intention of the update because the majority of our own and our clients websites now have massive problems and the scoring is way worse than it used to be.

    Plugin Author Raul P.

    (@alignak)

    It was an issue with how your php files started, mostly. FVM couldn’t detect them because the files started with an comment, instead of <?php.

    This is fixed on 3.0.8 and I also adjusted all settings on FVM for your site, which as I have been explaining earlier… there was no need to ignore any file on FVM 3.

    However, third party scripts needed to be optimized, as none of them were (and this is a manual process).

    Your final score was 75/96 on pagespeed insights, though I sent you further recommendations on how to refactor some of your scripts and add a CDN and better caching, to improve this a bit further if you wish.

    Thanks again for reporting, as it helped polishing some unusual stuff I didn’t foresee when I built FVM 3.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Not usable anymore’ is closed to new replies.