Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination and Lazy load #19

Open
gregm-mwb opened this issue May 24, 2022 · 0 comments
Open

Pagination and Lazy load #19

gregm-mwb opened this issue May 24, 2022 · 0 comments

Comments

@gregm-mwb
Copy link

Hi Thanks for the plugin great work it works brilliantly

A couple of slight issues,

  1. When you generate the code for inserting images it would be great if you included lazyload
  2. The navigation goes a bit wonky on previous and next (maybe because of lazyloading I added to images). Anyway, I wrote this which scrolls the table to the top on pagination:

`function anchorjs_load()
{
?>

<script> jQuery(document).ready(function($) { $('#tablepress-1').on('DOMSubtreeModified', function(){ $('body, html').animate({scrollTop:$('#tablepress-1').position().top},0); }); }); </script>
<?php

}

add_action('wp_footer', 'anchorjs_load', 20);`

Thanks again

Greg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant