osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
649 stars 342 forks source link

async enqueue #2317

Open nosborzone opened 4 years ago

nosborzone commented 4 years ago

Good afternoon, does anyone know how to turn this function used for WordPress into something that we can use in Osclass function ikreativ_async_scripts($url) { if ( strpos( $url, '#asyncload') === false ) return $url; else if ( is_admin() ) return str_replace( '#asyncload', '', $url ); else return str_replace( '#asyncload', '', $url )."' async='async"; } add_filter( 'clean_url', 'ikreativ_async_scripts', 11, 1 );

patriksh commented 4 years ago

Ask on Osclass Community Forum. I'll be glad to help there.