Defered parsing of javascript breaking MT

Author Posts

robertlo

https://preachnet.com/freeindeed

This seems to make MT not load fully:

function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
if ( strpos( $url, ‘jquery.js’ ) ) return $url;
return “$url’ defer “;
}
add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );

Any way around that, or just comment it out when I want to use MT, and then turn it back on?


Sebastian

Hi Robert,

If you don’t mind, I recommend commenting out the defer_parsing_of_js filter while you work in Microthemer. I would need to do some serious testing and debugging to make sure that there are no unwanted consequences, aside from the ones you noticed immediately. This would slow down some priority tasks we’re trying to get finished right now.

But when we start work on the speed optimisations and general reorganisation of the code base, which will entail a deep test of all functionality, I’d be happy to see if MT can work with deferred scripts too.

Cheers,
Sebastian


robertlo

No problem. That is already what I have been doing since I discovered the issue yesterday.

Thanks,
Rob

You must login or register to reply to this topic.