Alexander Barwig
Forum Replies Created
-
Forum: Plugins
In reply to: [Smooth Slider] Smooth Slider Ignores Custom CSSSorry, just ignore this post.
Forum: Plugins
In reply to: [Slim Jetpack] Full-sized images in tiled galleryTiled galleries in Jetpack require to upload photos to wordpress.com as they´re fetching images sized by parameters added to the picture filename. In a normal wordpress installation, the parameters are simply ignored and thus full-size images are delivered. It would require a special treatment of pictures (adding rewrite rules for parameters) and to generate thumbnails on the fly (or usecached versions).
So I think it doesn´t make much sense to include this module to the slim package without the resizing feature.
Forum: Plugins
In reply to: [BJ Lazy Load] Image below emtpy placeholder block for non-js usersThanks for your reply.
Is the plugin shipped with the display attribute set to none for the lazy-hidden class? I can´t find the definition.
Well but that was exactly what I did before, I set
.lazy-hidden { display: none; }myself. In this case, it worked for non-js users just fine. BUT with js enabled, the lazy-image loading didn´t work and all images were loaded on page load. I traced it down to jquery.sonar which fires all image loading events on init. That is caused because offsetParent returns NULL if the display attribute is set to none.See
https://github.com/artzstudio/jQuery-Sonar/blob/master/jquery.sonar.js
line 198.As offsetParent is NULL, elem.sonarElemTop is 0 which means that elem will be loaded immediately.