Hi guys!
How to set the video html tag preload to none?
Thanks!
Please note, that here we only support Paid Addons issues and questions.
gVectors Support staff works from 6am to 6pm (GMT+0)
All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:
Hi guys!
How to set the video html tag preload to none?
Thanks!
Hi @igork82,
Please put the following JS code in the current active theme functions.php file:
add_filter("wpdiscuz_after_read_more", function ($content) {
return preg_replace('~(<video[^>]*)>~is', "$1preload='none'>", $content);
}, 999);
Don't forget to delete all caches and press CTRL+F5(twice) on the frontend before checking.
Also please note the code works only for the front-end