=================================================================== # # # # # # # N O T E S & T O D O S # # # # ===================================== # # # # Nevma (info@nevma.gr) # # # # # # # =================================================================== NEXT DEVELOPMENT NOTES ====================== *** - DOCUMENTATION AND NEW SCREENSHOTS MENTION THAT YOU CAN NOW DEBUG NICELY IN FIREFOX DEVELOPER TOOLS IN RESPONSIVE DESIGN MODE TOO ONLY WORKS WITH THE IMG ELEMENT SO FAR CAN IT COOPERATE WITH LAZY LOAD PLUGINS? => NATURALLY YES, BUT IN CDN MODE IT NEEDS SOME TINKERING!!! READFILE MAY CAUSE PHP PROBLEMS WITH BIGGER FILES => DETECT IF XSENDIFLE MODULE IS INSTALLED AND USE IT http://stackoverflow.com/questions/12233386/php-how-to-find-out-if-x-sendfile-is-available-and-installed => θα μπορούσες να έχεις ένα συγκεκριμένο δικό σου sample image μέσα στο plugin, κι όταν ζητείται αυτό να το στέλνεις πάντα, αποκλειστικά και μόνο με xsend οπότε είτε το παίρνεις με xsend, είτε 404 => Στο htaccess αυτά: XSendFile On XSendFileAllowAbove On SetEnv MOD_X_SENDFILE_ENABLED 1 Κι έπειτα από PHP: if ($_SERVER['MOD_X_SENDFILE_ENABLED']) { Header(...) } --- Πάντως διάβασε το module documentation, π.χ. Removed Configuration directive: XSendFileAllowAbove Use XSendFilePath instead. πάντως δεν έχει πολύ νόημα, γιατί είπαμε ότι το xsendfilepath setting πρέπει να μπει στο apache config. Τι ποσοστό χρηστών ξέρουν και θα το κάνουν αυτό. --- Επίσης, το Xsendfile έχει διαφορετική υλοποίηση σε Apache, Litespeed, NginX, οπότε όπου δεν είμαστε σίγουροι ίσως είναι καλύτερο να μείνει εντελώς εκτός. - WPENGINE https://wpengine.com/support/mask-image-url/ "we use NGINX to serve static files like images. It’s one of the key ingredients" - BUT WORKS WITH WP-ROCKET! - ALSO problematic setup Case where a CDN is using a different subdomain for images like https://www.thetimethespace.com/ https://images.thetimethespace.com/ - NON DEFAULT WP-CONTENT DIRECTORY - PLUGINS FOLDER RENAME - CANNOT WORK WITH A CDN ON A DIFFERENT SUBDOMAIN - CANNOT WORK WITH A CDN AND CSS BACKGROUND IMAGES - CANNOT WORK WITH A CDN AND PICTURE ELEMENT - AN IDEA: RESIZE IMAGES AND KEEP THEIR RATIO BASED -NOT ON THEIR WIDTH- BUT THEIR HEIGHT. PUT THIS AS A SETTING. - HAVE A DEBUG MODE WHERE ALL IMAGE REQUESTS AND HOW THE PLUGIN HANDLED THEM ARE LOGGED. - Notify the main plugin "somehow" when the resolution cookie is not there at all (for cases where it might have been stripped away) - IMMEDIATELY CHECK IF PLUGIN ACTUALLY WORKS AND REPORT THE POSSIBLE PROBLEMS, IF ANY Pedro.Frota: Long story short: since Adaptive Images works in such a transparent manner, one big question for users is whether or not it is indeed working. IMHO a visual feedback is the best solution. - WORDPRESS VIRTUALLY IN A SUBDIRECTORY: When WordPress is virtually in a subdirectory, the htaccess file of the root directory should only contain the code necessary to route all requests to the subdirectory and all the rest of extra code should go into the htaccess file of the subdirectory itself. This is necessary for stability and containment. OR: The WordPress address url and the Site address url in /wp-admin Settings > General should both be the same and not contain the subdirectory!!! <<< !!! *** !!! NEXT DEVELOPMENT NUMBERED ========================= *** 1. CDN/CACHING SERVERS SUPPORT - Images in CSS are not handled - HTML replace image src server side - Then add resolution url parameter browser side on DOMContentLoaded - Slight SEO issue because images have no src attribute - Use