Skip to content

SEO Ultimate compatibility fix and a feature request #43

Description

@Mackzwellz

In bj-lazy-load.php, there are these two lines:

$bjll_options = new BJLL_Options();
$bjll = new BJLL( $bjll_options );

By default, this plugin is incomatible with SEO Ultimate plugin, as stated here for example. The simple and easy fix is to delete the second line. As far as I can tell, plugin works with it disabled just fine, and incompatibility with another plugin is resolved.

I also have a feature to request to be added. This new string of code here should be applied in order to strip "http:" and "https:" from src URLs, because in certain cirumstances (site with Cloudflare Flexible SSL + HTTPS Rewrites and no own server SSL) <nosript> src and data-src URLs aren't replaced, and on image load page turns into mixed SSL.

// Strip protocol scheme from src and data-src
$replace = str_replace(['http:', 'https:'], '', $replace);

$content = str_replace( $search, $replace, $content );

I'd suggest making it a checkbox option, or let users even choose – strip both HTTP and HTTPS, replace HTTP with HTTPS or do nothing. Or maybe you could automate it somehow, idk. Either way, the best practice now is to always use HTTPS, but not everyone may be using it still obviously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugto confirmReproduction of issue is pending

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions