国内WP站极端后台加速法 客户网站在中国大陆,迭代几轮并引入若干新插件后,后台性能急剧下降,后台风吹草动,前台页面立刻纹丝不动。 Query Monitor显示出站HTTP API CALLS,意料中的api.wordpress.org,my.elementor.com至少能返回HTTP 20 Read More » 2021年4月7日 没有评论
wordpress教程:给博客最新文章添加new标记 在index.php里找到包含的地方,在后面加上如下代码: <?php $t1=$post->post_date; $t2=date(“Y-m-d H:i:s”); $diff=(strtotime($t2)-strtotime($t1))/3600; if($diff<24){echo ”<img src=’http://www.g Read More » 2021年4月7日 没有评论
Web开发笔记 WordPress使用webP格式减少图片体积 webP是新一代的图片格式,在保证肉眼识别无差异的图像质量基础上,采用更优秀的压缩算法减少图片体积,从而加快图片网络传输速度。如果你使用过 PageSpeed Insights,应该对webP格式不陌生,谷歌会提示使用webP Read More » 2020年10月30日 没有评论
Web开发笔记 WordPress性能优化 自写博客以来,本人一直用WordPress做建站程序。肯定有人会问,都2020年了,为什么还用WordPress,不用Hexo、Jekyll、Github Pages、Medium呢?主要是WordPress的主题/插件系统太牛逼,生态非常完善,远超其他建站程 Read More » 2020年10月30日 没有评论
Web开发笔记 10 Best Speed Optimization Tips For Elementor Websites Elementor is one of the best page builders for WordPress written with a strict code standard. But, some of the websites built with Elementor page builder suffer from configuration issues that may lead Read More » 2020年10月26日 没有评论