• I just found your plugin today. The idea is amazing regarding the user privacy.
    So I installed the plugin and tried it.

    But it is still loading content from google/youtube e.g. (before clicking the play button).
    Settings for the preview picture is: save local.

    Am I missing something?
    Thanks

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    afraid those video’s aren’t LYTE ones flaschenzug22. how did you add them? are you using a pagebuilder?

    Thread Starter flaschenzug22

    (@flaschenzug22)

    Oh, I thought the plugin is replacing the normal video embeds too?
    When using [lyte id=” /] it works … Thanks for the hint!

    I am not using a pagebuilder.

    Thread Starter flaschenzug22

    (@flaschenzug22)

    And I just saw, that the following code is displayed – but empty.
    It looks like it is for the possible title and I guess something else.
    <div class="lL" style="max-width:100%;width:1280px;margin:5px;"></div>

    Is the code fragment needed even if empty?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    had a look at the URL you provided an all is fine flaschenzug22 flaschenzug22, no code snippet required. ??

    Thread Starter flaschenzug22

    (@flaschenzug22)

    So are normal Youtube links like not replaced with the code and I have to use the [lyte] shortcode?

    And the <div class=”lL” ,,,></div> appears in the code but is empty.
    If not needed, maybe get rid of it if empty ? Just an idea for an improvement ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    generally it does work on youtube links, but pagebuilders and other plugins sometimes interfere.

    re. lL; depends on settings but indeed in your case it could be removed. I’ll put it on my backlog, but given it’s a nano-optimization it will not have high priority ??

    Thread Starter flaschenzug22

    (@flaschenzug22)

    Is there a simple way for me to debug?
    Not using many plugins.

    – ACF
    – AUTOPTIMIZE
    – UpdraftPlus
    – WebP Converter
    – Yoast

    re. backlog: perfect. would be nice if it is gone, but like you said: no high priority :-).

    • This reply was modified 2 years, 8 months ago by flaschenzug22.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    my money would be on ACF; are the youtube’s added through those?

    Thread Starter flaschenzug22

    (@flaschenzug22)

    good point … yes they are.
    Adding an embedded video via the blocks works fine.
    So ACF it is.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, I assume ACF has an API and LYTE has one as well, so you can probably glue the two of them together with a couple of lines of PHP-code if you’re into that sort of thing? If so, you’ll have to identify which ACF filter to use and in the function hooked to that call lyte_parse() (or lyte_preparse() depending on … things ?? )?

    Thread Starter flaschenzug22

    (@flaschenzug22)

    I assume it should be this filter:
    https://www.advancedcustomfields.com/resources/acf-load_field/

    So with this code it could work, but I didn’t test it yet.

    function my_acf_load_field( $field ) {
        return lyte_parse( ... the right var ... ); 
        // or 
        return lyte_preparse( ... the right var ... ); 
    }
    
    // Apply to all fields.
    add_filter('acf/load_field', 'my_acf_load_field');
    • This reply was modified 2 years, 8 months ago by flaschenzug22.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘youtube, doubleclick, gstatic e.g. still loaded ?’ is closed to new replies.