- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
Dorell James
MemberWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi,
I am trying to figure out how I could at least make Masonry work with LazyLoad plugin in WP (http://wordpress.org/plugins/advanced-lazy-load/).
Take this site (my site): http://dorelljames.com/portfolio/ for example. That’s quite large images loaded there and I’m afraid as I add more the page will take too long to load. π
Might be good if Masonry could work combined with Lazy Load for this theme. But how?
Thanks, very nice theme indeed.
Cheers,
DorellAdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Daniel Tara
KeymasterWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Masonry is dependent on the imagesLoaded() function to function properly. The reason is that the grid blocks dimensions need to be determined before masonry can calculate the layout. This essentially makes it incompatible with lazy loading.
You could try using the JPG instead of PNG format for images, the decrease in file size is significant. The website also shrinks large images to the width of the blocks. You could try to create thumbnails for those images with this plugin.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Dorell James
MemberWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Thanks for the prompt response. I was hoping that there could be some other way just like what I read on StackOverflow. For the meantime, I’ll use the plugin you suggested. Thanks once again.
Tagged: lazy loading, masonry
You must be logged in to reply to this topic.