Support » Plugin: jQuery Image Lazy Load WP » jQuery Image Lazy Load WP disable for iphone

  • Resolved DopinPanda


    anyone can help me at least disable the lazy load for iphone? cause all the images below the current view get grey.
    thanks. i’ve been reading and no one has an answer, so at least it would be great if someone can help me with jquery code to disable for iphone, and where to put it. thanks in advance

Viewing 1 replies (of 1 total)
  • OK!!
    this code worked for me, hope for u too.

      Plugin Name: jQuery lazy load plugin
      Plugin URI:
      Description: a quick and dirty wordpress plugin to enable image lazy loading.
      Version: v0.10
      Author: Andrew Ng
      Author URI:
    function jquery_lazy_load_headers() {
      $plugin_path = plugins_url('/', __FILE__);
      $lazy_url = $plugin_path . 'javascripts/';
      $jq_url = '';
      wp_enqueue_script('jquery', $jq_url, false, '1.4.2');
      wp_enqueue_script('jquerylazyload', $lazy_url, 'jquery', '1.5.0');
    function jquery_lazy_load_ready() {
      $placeholdergif = plugins_url('images/grey.gif', __FILE__);
      echo <<<EOF
    <script type="text/javascript">
      if (navigator.platform == "iPad") return;
    if (navigator.platform == "iPhone") return;
       threshold : 200,
        placeholder: "$placeholdergif"
      add_action('wp_head', 'jquery_lazy_load_headers', 5);
      add_action('wp_head', 'jquery_lazy_load_ready', 12);

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery Image Lazy Load WP disable for iphone’ is closed to new replies.