WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] HTML-Code Optimization (2 posts)

  1. deeluuxe
    Member
    Posted 2 years ago #

    Hello!

    I really like your album - great plugin with cool features!
    What I don´t like is WPPA adds a lot of code on every page - even on pages where no album is shown. This is not perfect for SEO because the page speed is not like it could be.

    <!-- WPPA+ Runtime parameters -->
    = 60 lines of code

    <!-- start WPPA+ Footer data -->
    = 19 lines of code

    It would be perfect when the scripts are not included in the HTML-Code but loaded as JS-Files like <script type='text/javascript' src='https://...
    By this external scripts can be minified with a Minifyer like http://betterwp.net/wordpress-plugins/bwp-minify/ so the page loads faster.

    Could this be optimized? I think it would be better not adding any code on pages where it´s not needed - every Kb counts.

    Keep on the good work!
    Jan

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    It says: <!-- WPPA+ Runtime parameters --> this means it is not always the same, so it cannot be in a file.

    I tried various minifiers, they all failed.

    You should not worry about a few kb when people are viewing = downloading 100's of kbs of pictures.

    I, and hence wppa+, am not clairvoyant. I.e. it is not known at the time the head section is built-up if there will be wppa+ albums, photos or widgets later on the page.

    If you do not use the built-in lightbox functionality, change Table IX-A6: lightbox keyname to anything else but wppa. This will result in not having the 19 lines in the footer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic