Forum Replies Created

Viewing 15 replies - 61 through 75 (of 116 total)
  • Thread Starter atutrabajo

    (@atutrabajo)

    Hello. Thanks for answering.
    The only file of yours where array.prototype is mentioned (without the .includes), is this one;
    https://stage9.atutrabajo.org/wp-content/plugins/elementor/assets/js/web-cli.min.js
    However, it is also true that it also appears in this file (which is NOT yours.)
    https://stage9.atutrabajo.org/wp-includes/js/dist/vendor/wp-polyfill.min.js
    Consequently, if it is not yours, there is no problem.
    I just wanted to see if I could collaborate to try to improve your plugin.
    As for the other file, I have no idea, heh.
    One way or another, thanks.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. I think you are correct because it depends on how W3TC “combines” the Javascript files, the resulting file is headed by You (Content View) or Elementor! heh
    Okay. Now I pass the concern to them.
    So, with you everything is ok.
    One way or another, thanks for the contact.
    See you.

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. If I (again, heh). Just to tell you what, I just created a new page (mysite/how-to-create-your-personal-brand/), and we are already starting with the problems, heh!
    I’ll explain. On this page (which is NEW) your plugin does NOT work either.
    Ergo. This is MORE SERIOUS than I thought. Why? Simple…
    Because not only does it NOT work (DO NOT open) on some pages, it will NOT work on ANY other pages.
    And that, even in these moments, I ALREADY PROCEEDED as you indicated. That is to say, I EXCLUDED from my minized plugin, the file wp-content/plugins/mobile-menu/includes/css/mobmenu.css
    Any other idea?
    I await your comments.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. First of all, thanks for replying. Having said that…
    Yes. You have “missed” this; https://ibb.co/XFTyy5P
    As you can see, the results of Pagespeed vary depending on when you run it.
    And, in the case that you can see on the screenshot, it is referencing the following file; https://stage9.atutrabajo.org/wp-content/cache/minify/a71fc.js
    Which, if you click to see it, you will see that it is…
    /*! content-views 05-2022 */
    /*!
    * Bootstrap v3.4.1 (https://getbootstrap.com)
    * Copyright 2011-2019 Twitter, Inc.
    * Licensed under the MIT license
    */
    Or something like that, heh.
    I hope it helps you in your analysis.
    I await your comments.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello.
    First of all, thanks for replying.
    That said, I was going to answer that, if you read my previous post well, you should have read that, what you tell me, I had already done!
    But hey. I just did it again and NOTHING.
    Anyway, to add elements to your analysis, I just realized that when you click on the “hamburger” icon, not only does it NOT open on the pages that I mentioned, but the link is ” turns” into this…
    my-site/search-job/#
    That is, a numeral is added (as if it were a link to it)
    Again:
    1) The icon does NOT open on some pages
    If you want to test yourself, here are some examples;
    my-site/search-job/
    my-site/labor-psychotechnic/how-to-pass-labor-psychotechnic/
    Etc.
    2) I already tried EVERYTHING I mentioned above.
    3) I just tried what you tell me (exclude the file you pointed out from the minimized).
    And – as usual – I regenerated all my CSS (Elementor function) + Cleared ALL caches and… NO Case.
    Finally…
    Have you already tried what I mention in the pages / entry that I pointed out to you?
    I await your comments.
    From already thank you very much.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Another yes, I say.
    I forgot to tell you 2(two) things (in case you want to incorporate them into your analysis of the case):
    1) On my site, I have this code installed in my function.php…
    /* 10) Remove unnecessary query tags from scripts and style sheets in the header */
    function _remove_script_version( $src ){
    $parts = explode( ‘?’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
    Which, you will surely realize, what it does is remove the versions of the CSS and JS files.
    This is because I “hate” to see WordPress (or whoever) is adding versions to my files all the time.
    And because, as I could read somewhere, that helps to optimize (accelerate) my site.
    2) In my Cloudflare I have…
    caching
    Setting
    Browser cache TTL: 6 months
    Which (as I also read out there), contributes to the speed of the site.
    Does it have something to do with the problem that I raised?
    Thanks, again.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Hi Marko.
    First of all, excuse my insistence. But there is something I don’t understand:
    You say that…
    …”The reason for this is that the browser also has a cache and once the content is changed or any files with different strings need to be updated in the browser, which means the browser needs to check for new files”. .
    Me what…
    …”I would recommend that if you do make any changes, you do so after or before users usually visit the page, so that you can ensure there are no uses on the page you are currently editing.”…
    And that, consequently…
    …”this is not related to W3TC or server-side caching, but is on the user’s end, in their browsers. This is completely normal behavior”…
    Let me tell you that, last night I was adding content to one of my articles until 3am and, this morning, I saw ALL the changes made to it in an incognito window. But…
    I didn’t see ANY in my normal window. Until I updated the browser.
    And – honestly – I’m “afraid” that I’m doing something wrong with the browser and/or page cache.
    That is, you and I know that NO visitor will search for information in – for example – Google and, when they find my article (I hope, heh), they will enter using an incognito window, heh.
    And, if it is the 1st. time you enter, you will also not know if there is “something else”. So I highly doubt you’ll do F5 and/or Refresh the page.
    Ergo. You are going to enter from a “common” window and, my fear is, you will NOT see the changes I have made.

    Just in case, I'll pass you my numbers (Obviously, the ones with a check mark like this ? are enabled and the ones that aren't, no:) :
    1) Page Cache: Enable
    Page Cache Method: Disk: Basic
    2) Browser Cache: Enable
    3) Page Cache: General
    ? Cache the ticket page
    Do not cache the home page
    ? Caching feeds: site, categories, tags, comments
    ? Cache SSL (HTTPS) requests
    ? Cache URIs with query string variables
    Cache 404 pages (not found)
    ? Do not cache pages for connected users
    Do not cache pages for the following user roles
    3.1) Cache preload
    ? Automatically prioritize page cache
    Refresh interval: 1800 seconds
    Pages per interval: 10
    Sitemap URL: ***/sitemap_index.xml
    ? Preload the post cache upon publish events
    

    4) Browser Cache: General
    ? Set Last-Modified header
    ? Set header expiration
    ? Set header control cache
    ? Set Entity Tag (ETag)
    ? Set the W3 full cache header
    ? Enable HTTP (gzip) compression
    Enable HTTP (brotli) compression
    Prevent caching of objects after settings have been changed
    Remove query strings from static resources
    Cache exception list:
    Do not set cookies for static files.
    Removes the Set-Cookie header for responses.
    Do not process 404 errors for static objects with WordPress
    404 Error Exception List
    Rewrite URL structure of objects

    4.2) CSS & JS
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 15552000 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time and validation ("max-age=EXPIRES_SECONDS, public, must-revalidate, proxy-revalidate"
    ? Set entity tag (eTag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    Prevent caching of objects after settings have been changed
    Remove query strings from static resources
    Disable cookies for static files
    4.3) HTML & XML
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 3550 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time ("public, max-age=EXPIRES_SECONDS")
    ? Set Entity Tag (ETag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    4.4) Media and Other Files
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 15552000 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time ("public, max-age=EXPIRES_SECONDS")
    ? Set Entity Tag (ETag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    Prevent caching of objects after settings have been changed
    Remove query strings from static resources
    Disable cookies for static files
    

    To finish a couple of things:
    a) Although (as you can see), I have GZip compression enabled (both through W3TC and from my own hosting) and, in online tools where I performed checks like this; https://ibb.co/1QMRfYQ
    Everything indicates that I have everything compressed, according to Pingdom Tools…
    https://ibb.co/NpbHBWz
    My site… Has 0 compression!
    Do you know what could be causing this?
    b) Just in case. Same goes for understanding brotli. That although, it does not have it enabled with you if it is with Cloudflare.
    Finally and, taking into account all the above…
    c) Do you have any idea if I’m doing something wrong?
    I await your comments.
    From already thank you very much.
    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Clever. It is done. For now is it all? Because, if so, I’m going to sleep, heh:) Tomorrow is another day. See you! PS: Everything is as I told you before. That is:
    1) With the code you sent me in my function.php
    2) With what you asked me in the last mail regarding Autocomplete, Instant Search, Javascript and, with ALL Algolia files EXCLUDED from the minimized one.
    3) With W3TC + Cloudflare Enabled and all caches cleared.

    I hope this helps.

    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Okay. You want is you have it…

    1) Autocomplete disabled

    2) Instant search enabled

    3) ALL JS files are loaded in their original places (Including Algolia’s)

    4) Since I don’t know what generates what you say about…”The view source is not minimized at all”…
    I simply excluded from the minimized ALL Algolia files, heh.

    That is:

    a) The ONLY CSS file I found. Namely...
    /wp-content/plugins/wp-search-with-algolia/css/algolia-autocomplete.css?ver=2.2.0
    
    b) ALL JS files. Namely...
    /wp-content/plugins/wp-search-with-algolia/js/algoliasearch/dist/algoliasearch-lite.umd.js?ver=2.2.0
    /wp-content/plugins/wp-search-with-algolia/js/algoliasearch/dist/algoliasearch-lite.umd.js?ver=2.2.0
    /wp-content/plugins/wp-search-with-algolia/js/autocomplete.js/dist/autocomplete.min.js?ver=2.2.0
    Finally...
    
    c) In my cPanel/Metrics/Errors I get these error messages...
    
    [2022-07-26 01:57:15]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    [2022-07-15 17:31:32]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    [2022-07-15 17:30:50]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    [2022-07-15 17:30:21]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    [2022-07-15 17:28:49]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    [2022-07-15 17:08:55]: uid: (1926/atutra19) gid: (1924/atutra19) cmd: suspendedpage.cgi
    Does it have something to do with you?
    
    I await your comments.
    
    Greetings.
    Thread Starter atutrabajo

    (@atutrabajo)

    Yes. I didn’t understand you at all. Sorry, heh.

    But I confirm that, I ALREADY removed that code that sent ALL the .js to the footer.

    Ergo. Now ALL JS (including Algolia’s) are in their “original” places.

    So now, it’s all yours.

    But remember that I also left the previous code you sent me installed.

    I await your comments.

    Greetings.

    Thread Starter atutrabajo

    (@atutrabajo)

    No. For the same reason that I told you at the beginning (Optimize my site, without the need for so many plugins and others), I used a code that makes ALL the JS load in the footer to – that way – “comply” with what to remove the code that blocks rendering.
    The code in question is this…

    // Remove JS enqueued in the header and move it to the footer

    add_action( 'wp_enqueue_scripts', function () {
    remove_action('wp_head', 'wp_print_scripts');
    remove_action('wp_head', 'wp_print_head_scripts', 9);
    remove_action('wp_head', 'wp_enqueue_scripts', 1);
    add_action('wp_footer', 'wp_print_scripts', 5);
    add_action('wp_footer', 'wp_enqueue_scripts', 5);
    add_action('wp_footer', 'wp_print_head_scripts', 5);
    });
    But hey. I already take it off. But unless you show me it was worth it, I'm going to install it again in a while.
    
    I await your comments.
    
    Greetings.
    Thread Starter atutrabajo

    (@atutrabajo)

    oh Yes now. It already seemed to me that those symbols at the end could not be part of the code, heh!

    Okay. Do not talk more…

    1) I already installed your code in my function.php

    2) I already returned Algolia to the option Use Algolia with Instantsearch.js

    3) I already cleared all caches.

    And now?

    Because frankly, I don't see ANY change.
    
    I don't know. Now I leave it to you as my site should work.
    
    If you want, try looking for something yourself and tell me.
    
    You think?
    
    I await your comments.
    
    Greetings.
    Thread Starter atutrabajo

    (@atutrabajo)

    I am sorry. It does not let me.

    When I try to enter this you passed me…

    función wds_algolia_load_jquery() {
    wp_enqueue_script(‘jquery ‘);
    }
    add_action(‘wp_enqueue_sc ripts ‘, ‘wds_algolia_load_jquery& #039;);

    WordPress tells me that…
    Changes to your PHP code have been reverted due to an error on line 236 of the wp-content/themes/hello-theme-child-master/functions.php file.

    Please fix it and try to save again.

    And add the following…
    syntax error, unexpected identifier “wds_algolia_load_jquery”

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello Michael. First of all, thanks for replying.

    With that being said, and with regards to…
    …”Are you disabling and/or avoiding jQuery on purpose by any chance?”…
    The answer is, I don’t know, ha!

    I explain:

    In my eagerness to try to improve my WPO, I searched (and am still searching, heh) for information about it and (regarding JQuery), I found articles like this one; https://dotlayer.com/what-is-migrate-js-why-and-how-to-remove-jquery-migrate-from-wordpress/
    
    Which, as you can see, does NOT talk specifically about JQuery but about JQuery Migrate and, among other things, it says that...
    ..."is a javascript library that allows you to preserve the compatibility of your jQuery code developed for versions of jQuery prior to 1.9"...
    
    Me what...
    ..."restore deprecated features and behavior so that old code still runs correctly in the current version of jQuery and later"...
    
    Me what...
    ..."If you're running plugins that use older jQuery code, it's probably best to update them or switch to an alternative that stays up to date"...
    
    And - as well - they mentioned that...
    ..."jQuery migrate adds unnecessary load to your site"...
    I decided to remove it, using the following code in my function.php

    //Remove JQuery migrate

    function remove_jquery_migrate( $scripts ) {
       if ( ! is_admin() && isset( $scripts->registered['jquery'] ) ) {
            $script = $scripts->registered['jquery'];
       if ( $script->deps ) { 
    // Check whether the script has any dependencies
    
            $script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) );
     }
     }
     }
    add_action( 'wp_default_scripts', 'remove_jquery_migrate' );
    

    However…
    When I remove this code from my function.php, 2(two) things happen (both “bad”, heh).
    1) The 1st. your instantsearch function is still NOT working!
    Namely. Load results load. But NOT instantly. But after a while of turning the “thing” that I don’t know what it’s called, heh.
    And this – as you surely know – can be “deadly” because, it is very likely that the visitor ends up hitting the Enter key and (again) we would go on to the “problems” mentioned at the beginning.
    2) In my Chrome Inspector, I get the following error…
    JQMIGRATE: Migrate is installed, version 3.3.2

    In fact, I did the following tests (before making the decision that I comment below):
    a) I disabled Cloudflare + W3TC (ie the tools that control my cache), so that the test is "fair".
    b) This is an extract from the "critical request chain" (According to Pagespeed);
    https://ibb.co/ZY5dP9C
    You will notice that, they appear almost together and simultaneously, these 2...
    ...jquery/jquery.min.js(stage9.yourwork.org) - 180 ms, 32.56 KB
    …jquery/jquery-migrate.min.js(stage9.yourwork.org) - 130 ms, 5.17 KiB
    That is to say that... jquery appears (which adds 180 ms) + jquery migrate which... Adds another 130 ms!
    
    Now, I'm going to insert the aforementioned code back into my function.php to remove jquery migrate (And see what happens).
    
    And (as the "Chapulín Colorado" used to say, heh:)...
    ..."As I suspected from the beginning"...
    I do NOT get ANY JQuery errors.
    Definitely. I am going to leave the code in my function.php because, as I said, I do NOT see significant improvements in the speed of loading the results in the search engine.
    But yes, I see one less error (the one I mentioned in point 2) and, furthermore, as I mentioned at the beginning of this text...
    ..."One less JS file is always - even - a few milliseconds less in load"... (Something very important for the WPO).
    In fact, with jquery migrate installed, this was the result...
    https://ibb.co/hLmhGzv
    Instead, without jquery migrate, the result was the following...
    Here the one corresponding to the "chain of critical requests"...
    https://ibb.co/PFDCzNM
    Where you can see that jquery.min is, with its "damn" 150 ms
    And as for the score, the result was as follows...
    https://ibb.co/dmpcLJL
    Yes. I know. It's not a big deal". But you well know that a JS file is a JS file.
    And - anyway - evidently that code was NOT "responsible" for removing jquery.
    Which, by the way, according to Pagespeed... is loading!
    Ergo. I don't know why it gives you "error".
    And, in any case, it does NOT influence (too much) the speed at which the results are presented in the search engine.

    `Conclusion:
    – I leave the code in the function.php to remove jquery migrate
    – jquery KEEP LOADING
    – In Algolia I leave the option “Use Algolia in the backend” checked
    And I await your comments to see if, with all this background, you find a solution, heh.
    From already thank you very much.
    Greetings.
    P.s: If you still believe that the code I mention having installed in the function.php is “responsible” for something, could you send me a version that says (for example) that…
    …”disable jquery migrate unless you have (whatever) installed”…
    Or, following what I could see in the articles that I told you about…
    …”turn off jquery migrate as long as I have jquery versions higher than (whatever)”…
    Or something like that.
    Or – directly – Couldn’t you include something in the plugin code so that these problems disappear?
    I ask you because, here between us, I have seen these search engines work on other sites and they do it quite well.
    For example, there is a porn site (xvideos.com) that – of course – the friend, a friend’s, a cousin’s, a work colleague’s told me, heh.
    But I’m telling you so you can see how I would like it to work (NOT with those results, obviously, heh:)
    Because, if not, sooner rather than later, unfortunately I will have to opt for the results that I had originally because, badly or badly, they look better than the ones I am seeing with Algolia installed.
    Pd2: Now yes, I’m going to leave everything as it was and, of course, that includes Cloudflare + W3TC activated because, after all, that’s how it should work.
    I’m telling you so you can see if, with the cache + minimized installed, I would have to improve/change something in my settings.

    Thread Starter atutrabajo

    (@atutrabajo)

    Okay. So, that’s all for now.

    Again, thanks for everything.

    Greetings.

Viewing 15 replies - 61 through 75 (of 116 total)