WEXALがおかしなpreloadを作ってしまう
TOP › Forums › 使い方全般(Fixing KUSANAGI) › WEXALがおかしなpreloadを作ってしまう
WEXALがおかしなpreloadを作ってしまう
Tagged: WEXAL
- This topic has 2 replies, 2 voices, and was last updated 3 years, 7 months ago by r9999.
-
AuthorPosts
-
-
2021年5月10日 at 17:34 #703
こんにちは。
WEXALでおかしなpreloadが作られてしまい困っています。
<head> <script>...</script>//wexal生成スクリプト <link rel="preload" href=""https://hogehoge.jp/wp-content/uploads/2020/05/IMG_hogehoge.jpg"" as="image">
その結果、下記のURLを参照しにいってしまい、404エラーが発生してしまいます。
https://hogehoge.jp/category/hogehoge/%22https:/hogehoge.jp/wp-content/uploads/2021/04/IMG_hogehoge.jpg
preloadしにいっているのは下記のコードの部分です。(個別記事ページでの場合)
<div style="background-image: url(https://hogehoge.jp/wp-content/uploads/2020/05/IMG_hogehoge.jpg)" class="slide slide-id-1250 tie-slide-1 is-trending tie-standard">
トップページではスライダー、個別記事ページではアイキャッチ画像が上記のようなpreloadが作られています。
除外方法や解決方法があれば、教えていただけないでしょうか?よろしくお願いします。
- This topic was modified 3 years, 7 months ago by r9999.
-
2021年5月11日 at 11:11 #705
これはLCPの画像をpreloadしてファーストビューを高速化する「link lcp preload」という機能ですね。
リソースヒントから link lcp preloadディレクティブを無効にすることで回避できます。
ただし、すべてのLCP画像のpreloadが無効化されます。原因についてはWEXALが作っているconfigをcurlで取得した結果を共有いただけたらなにかわかるかもしれません。
curl 'http://127.0.0.1:3000/api/v1/profiles/プロファイル名/config/production?url=該当ページのURL'
-
2021年5月12日 at 13:30 #706
Ch003さま
ありがとうございます。
長いですが、取得した結果を添付します。{"pst":"on","watch":"on","tdir":"/home/kusanagi/8b81e24f7917b8b0fe14b24c/DocumentRoot","odir":"_wexal","timezone":"Asia/Tokyo","protocol":"https","mobile_pattern":"Android .+ Mobile|\\(iPhone|\\(iPod|IEMobile|Android; Mobile; .+Firefox|Windows Phone","tablet_pattern":" Android |\\(iPad|Android; Tablet; .+Firefox","conf":{"editor":"vim","format":"yaml"},"options":["lua"],"global_exclude":["/_wexal","~$","/\\.","/wp-admin","/wp-includes","/wp-content/upgrade","/wp-json/","/wp-content/plugins","/wp-[^/]+\\.php"],"watch_additional_exclude":[],"worker":{"images":[{"cmd":"optimize","args":{"formats":["png","jpg","gif","webp"],"resize":"1920x1080","quality":80,"strip":true,"gif_lossy":80,"webp_lossy":75}}],"stylesheets":[{"cmd":"optimize","args":{"ie11":true,"ie11_ab":true}}],"scripts":[{"cmd":"optimize","args":{"ie11":true,"ie11_ab":true}}]},"lua":{"dynamic":{"enable":0,"exptime":3600,"config":{"voyage":true}},"fcache":{"enable":0,"exptime":60},"header_filter":[{"cmd":"wp remove header"}],"body_filter":[{"cmd":"wp shorten url"},{"cmd":"normalize newlines"},{"cmd":"link dns prefetch","args":[{"rel":"dns-prefetch","href":"//hogehoge.jp/","pos":"<head>"},{"rel":"preconnect","href":"//hogehoge.jp/","pos":"<head>"},{"rel":"dns-prefetch","href":"//www.googletagmanager.com/","pos":"<head>"},{"rel":"preconnect","href":"//www.googletagmanager.com/","pos":"<head>"}]},{"cmd":"link lcp preload","args":[{"rel":"preload","element":"div","href":""https://hogehoge.jp/wp-content/uploads/2021/02/IMG_20210131_160517-2s.jpg"","as":"image","pos":"<head>"}]},{"cmd":"secure target blank"},{"cmd":"wp remove meta","args":[{"func_to_remove":"rel_canonical","meta":false,"priority":false}]},{"cmd":"reduce script","args":{"apply_script":"jquery","exclude_script":false}},{"cmd":"engagement delay","args":{"score":280,"pscore":10,"high":"body","low":"load","delay":1000,"ratio":4,"inline":true,"debug":true,"scripts":[{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/like-me-box/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/like-me-box/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/child-pages/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/child-pages/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/taxonomy-terms/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/taxonomy-terms/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/rss/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/rss/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/section/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/section/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/taxonomy-posts/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/taxonomy-posts/nopro.css"},{"type":"css","path":"/_wp/snow-monkey-blocks/dist/block/pickup-slider/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/pickup-slider/nopro.css","comment":"[ slider plugin css in head ]"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/recent-posts/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/recent-posts/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/contents-outline/nopro.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/contents-outline/nopro.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/css/blocks.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/css/blocks.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/information/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/information/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/panels/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/panels/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/list/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/list/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/btn-box/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/btn-box/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/btn/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/btn/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/items/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/items/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/step/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/step/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/section/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/section/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/alert/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/alert/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/balloon/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/balloon/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/rating-box/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/rating-box/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/block/buttons/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/buttons/style.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/css/fallback.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/css/fallback.css"},{"type":"cssx","path":"/_wp/snow-monkey-blocks/dist/packages/spider/dist/css/spider.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/packages/spider/dist/css/spider.css"},{"type":"css","path":"//hogehoge.jp/wp-content/uploads/pz-linkcard/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/uploads/pz-linkcard/style.css","comment":"[ general css in head ]"},{"type":"cssx","path":"/_wp/snow-monkey-editor/dist/css/app.css","sync":"async","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-editor/dist/css/app.css"},{"type":"css","path":"/_wt/jannah-child/css/main.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah-child/css/main.css","comment":"[ general css in head ]"},{"type":"css","path":"/_wt/jannah/assets/css/style.min.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/css/style.min.css","comment":"[ general css in head ]"},{"type":"css","path":"/_wt/jannah/assets/css/widgets.min.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/css/widgets.min.css","comment":"[ general css in head ]"},{"type":"css","path":"/_wt/jannah/assets/css/helpers.min.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/css/helpers.min.css","method":"webfont"},{"type":"css","path":"/_wt/jannah/assets/css/fontawesome.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/css/fontawesome.css"},{"type":"css","path":"/_wt/jannah/assets/css/plugins/shortcodes.min.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/css/plugins/shortcodes.min.css","comment":"[ general css in head ]"},{"type":"css","path":"/_wt/jannah-child/style.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah-child/style.css","comment":"[ general css in head ]"},{"type":"css","path":"/_wt/jannah/assets/custom-css/style-custom.css","sync":"async","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/custom-css/style-custom.css","comment":"[ general css in head ]"},{"type":"jsx","path":"https://www.googletagmanager.com/gtag/js","sync":"sync","original":"https://www.googletagmanager.com/gtag/js?id=UA-101159106-2"},{"type":"inline js","needle":"\nwindow.dataLayer = window.dataLayer || [];function gtag(){dataLay","sync":"sync","comment":"[ closure is not found ]"},{"type":"js","path":"/_wi/js/jquery/jquery.min.js","sync":"sync","original":"https://hogehoge.jp/wp-includes/js/jquery/jquery.min.js","comment":"[ jQuery is found in head ]"},{"type":"js","path":"/_wi/js/jquery/jquery-migrate.min.js","sync":"sync","original":"https://hogehoge.jp/wp-includes/js/jquery/jquery-migrate.min.js","comment":"[ jQuery is found in head ]"},{"type":"inline js","needle":"\n (function(d) {\n var config = {\n kitId: 'col1ygn',\n scriptTimeout: 3000,\n async: true\n },\n h=d.documentElement,t=setTimeout(function(","sync":"async"},{"type":"inline js","needle":"var js_tie_block_841 = {\"icon\":\"fas fa-utensils\",\"order\":\"latest\",\"source\":\"id\",\"id\":[\"","sync":"sync","comment":"[ closure is not found ]"},{"type":"inline js","needle":"\n\t\t\tif( 'loading' in HTMLImageElement.prototype) {\n","sync":"sync","comment":"[ closure is not found ]"},{"type":"js","path":"/_wp/snow-monkey-blocks/dist/block/list/script.js","sync":"sync","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/block/list/script.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"snow-monkey-blocks/list-js"}]},{"type":"js","path":"/_wp/snow-monkey-blocks/dist/packages/fontawesome-free/js/all.min.js","sync":"sync","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/packages/fontawesome-free/js/all.min.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"fontawesome5-js"}]},{"type":"js","path":"/_wp/snow-monkey-blocks/dist/packages/spider/dist/js/spider.js","sync":"sync","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-blocks/dist/packages/spider/dist/js/spider.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"spider-js"}]},{"type":"js","path":"/_wp/snow-monkey-editor/dist/js/app.js","sync":"sync","original":"https://hogehoge.jp/wp-content/plugins/snow-monkey-editor/dist/js/app.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"snow-monkey-editor-js"}]},{"type":"inline js","needle":"\n/* <![CDATA[ */\nvar tie = {\"is_rtl\":\"\",\"ajaxurl\":\"https:\\/\\/hogehoge.jp\\/wp-admin\\/admin-ajax.php\",\"is_taqyeem_active\":\"\",\"is_sticky_video\":\"\",\"mobile_menu_top\":\"\",\"mobile_menu_active\":\"area_2\",\"mobile_menu_parent\":\"true\",\"lightbox_all\":\"true\",\"lightbox_gallery\":\"true\",\"lightb","sync":"sync","comment":"[ closure is not found ]"},{"type":"js","path":"/_wt/jannah/assets/js/scripts.min.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/scripts.min.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-scripts-js"}]},{"type":"js","path":"/_wt/jannah/assets/js/sliders.min.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/sliders.min.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-js-sliders-js"}]},{"type":"js","path":"/_wt/jannah/assets/js/shortcodes.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/shortcodes.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-js-shortcodes-js"}]},{"type":"js","path":"/_wt/jannah/assets/js/desktop.min.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/desktop.min.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-js-desktop-js"}]},{"type":"js","path":"/_wt/jannah/assets/js/live-search.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/live-search.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-js-livesearch-js"}]},{"type":"inline js","needle":"\n/* <![CDATA[ */\nvar shield_comments = {\"ajax\":{\"comment_token\":{\"action\":\"icwp-wpsf\",\"exec\":\"comment_token\",\"exec_nonce\":\"8d735207b6\",\"mod_slug\":\"icwp-wpsf-comments_filter\",\"ajaxurl\":\"https:\\/\\/hogehoge.jp\\/wp-admin\\/admin-ajax.php\",\"ts\":1620792718,\"post_id\":1126}},\"vars\":{\"cb","sync":"sync","comment":"[ closure is not found ]"},{"type":"js","path":"/_wp/wp-simple-firewall/resources/js/shield/comments.js","sync":"sync","original":"https://hogehoge.jp/wp-content/plugins/wp-simple-firewall/resources/js/shield/comments.js?mtime=1620356064","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"icwp-wpsf-shield-comments-js"}]},{"type":"js","path":"/_wt/jannah/assets/js/br-news.js","sync":"sync","original":"https://hogehoge.jp/wp-content/themes/jannah/assets/js/br-news.js","comment":"[ unknown attr is found ]","attr":[{"key":"id","value":"tie-js-breaking-js"}]},{"type":"inline js","needle":"\n\t\t\t!function(t){\"use strict\";t.loadCSS||(t.loadCSS=function(){});var e=loadCSS.relpreload={};if(e.support=function(){var e;try{e=t.document.createElement(\"link\").relList.supports(\"preload\")}catch(t){e=!1}return function(){return e}}(),e.bindMediaToggle=function(t){var e=t.media|","sync":"sync","comment":"[ for is found ]"},{"type":"inline js","needle":"\n\t\t\tvar c = document.body.cl","sync":"sync","comment":"[ closure is not found ]"}]}}]},"wp":{"wexal_init":[],"wexal_head":[],"wexal_enqueue_opt":[],"wexal_footer":[],"wexal_flush":[]},"level":4}
-
-
AuthorPosts
- You must be logged in to reply to this topic.
- Topic Tags
- WEXAL