Viewing 13 replies - 1 through 13 (of 13 total)
  • @francoc30 Yes you can defer the files, please check this article on how you can defer them:
    https://getwpo.com/faqs/how-can-i-eliminate-render-blocking-resources/

    Thread Starter francoc30

    (@francoc30)

    Hi @bornforphp,
    The minify files I quoted are just examples from testing one page. For other pages, there are other minify files. Looking at the Cache/Minify folder, there are many many minify files. It will be tedious to copy and paste all of them in the Defer section.

    Besides, the minify files will change over time. It will not be easy to maintain.

    @francoc30 Could you please check the option “Defer all the JavaScript files” from WP-Optimize > Minify > Javascript and check if it helps to fix the issue?

    Thread Starter francoc30

    (@francoc30)

    Hi Harshad,
    I tested this in my local site. After I enabled “Defer all the JavaScript files”, everything still worked except one. The Full Calendar plugin is no longer displaying a full calendar. I tried to exclude the calendar page from being cached, but it did not help.

    @francoc30 Could you please add the JS files of Full Calender to “Exclude JavaScript from processing” from WP-Optimize > Minisy and check if it works?

    Thread Starter francoc30

    (@francoc30)

    I put all the js files of the wp-fullcalendar in the exclusion section using the full path. But does not work, calendar still not showing.
    Also I found the deferral affected the Elementor column layout.
    Speed has improved for non-logged-in users though.

    @francoc30 You’ll have to exclude the domain part from the url and use only absoulte path like wp-content/plugins/some-plugin/some-js.js

    Thread Starter francoc30

    (@francoc30)

    I changed the exclusion files as you suggested and sved:
    wp-content\plugins\wp-fullcalendar\includes\js\fullcalendar.js

    But after I ran preload cache, the entries were changed by WPO to (adding an extra “\” :
    wp-content\\plugins\\wp-fullcalendar\\includes\\js\\fullcalendar.js

    Of course the calendar dis not show.

    Also in the browser console, there are the following entries in all pages.
    Uncaught ReferenceError: jQuery is not defined
    <anonymous> http://frank-photography/關於我們/註冊/條款和條件/:21
    Of course the url changes according to the page. But the “Uncaught ReferenceError: jQuery is not defined” is always there.

    @francoc30 IT should be a forward slash instead of

    wp-content\plugins\wp-fullcalendar\includes\js\fullcalendar.js

    Like this

    wp-content/plugins/wp-fullcalendar/includes/js/fullcalendar.js

    Thread Starter francoc30

    (@francoc30)

    Ok I made the change to
    /wp-content/plugins/wp-fullcalendar/includes/js/fullcalendar.min.js

    Still the calendar is not showing. In the browser console, there are error messages as copied below:

    Uncaught TypeError: can't access property "fn", moment is undefined
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        __webpack_require__ http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        __webpack_require__ http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        __webpack_require__ http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        __webpack_require__ http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        webpackUniversalModuleDefinition http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
        <anonymous> http://frank-photography/wp-content/plugins/wp-fullcalendar/includes/js/main.js:6
    main.js:6:25401
    Uncaught ReferenceError: jQuery is not defined
        <anonymous> http://frank-photography/活動/日曆/:53
    日曆:53:13
    Uncaught TypeError: can't access property 1, erroredFunction is null
        onerror http://frank-photography/活動/日曆/:84
        OnErrorEventHandlerNonNull* http://frank-photography/活動/日曆/:61
    日曆:84:61
    Uncaught ReferenceError: jQuery is not defined
        <anonymous> http://frank-photography/活動/日曆/:419

    @francoc30 I suspect the Calender plugin is not compatible with WP-Optimize could you please let us know which Calender plugin you are using? So that I can report the issue to our development team to get it fixed in next release?

    Thread Starter francoc30

    (@francoc30)

    Hi Harshad,
    The plugin is called WP FullCalendar. Hope the issue can be fixed in future release. I really like WP-Optimize. It improve the site speed a lot. Thanks.

    @francoc30 Sure thing we will let you know as soon as we have fixed the issue with WP FullCalendar.

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

The topic ‘Deferring minified files’ is closed to new replies.