Case: Staging and production copies of a WordPress 5.4 website on the same server. Activating QueryMonitor 3.9.0 on Staging work, but throws `Fatal error: Cannot declare class QM_PHP` on Production.
Category: Web Development
PHP Domdocument Not Displaying Cyrillic Characters Properly
Case: After loading an HTML doc as a string in PHP DOMDoc, the output of any selected node is similar to “ÐвÑопейÑка ÑÑолиÑа
“. Source file is UTF-8 encoded.
Continue reading PHP Domdocument Not Displaying Cyrillic Characters Properly
Animate Scroll to Page Anchor with jQuery
Scripts for ‘scrolling to an id’ (such as jQuery.scrollTo) have unnecessary customization options and do not handle all page links, pointing to anchors, on their own. (or is it just me?)
Minifying SVG and Embedding It Into HTML (a.k.a. Base64-encoding SVG)
Case: Assets such as PNG logos sometimes load shortly after the content, rendering their alt
content visible for a moment, distorting page design.
Continue reading Minifying SVG and Embedding It Into HTML (a.k.a. Base64-encoding SVG)