wp config souboru<\/a><\/p>\n\n\n\ndefine( ‚SCRIPT_DEBUG‘, true );<\/p>\n\n\n\n
Tato konstanta \u0159ekne j\u00e1dru WordPressu, \u017ee m\u00e1 pou\u017e\u00edt js a css soubory, kter\u00e9 nemaj\u00ed v n\u00e1zvu min. Tak\u017ee m\u00edsto jquery.min.js, bude web na\u010d\u00edtat jquery.js. <\/p>\n\n\n\n
V p\u0159\u00edpad\u011b, \u017ee pou\u017eijete tuto konstantu a probl\u00e9my na webu zmiz\u00ed, v\u00edte, jak\u00fdm sm\u011brem d\u00e1le p\u00e1trat. <\/p>\n\n\n\n
Pro v\u00fdvoj\u00e1\u0159e:<\/strong><\/p>\n\n\n\nP\u0159esto\u017ee cache pluginy minifikaci ud\u011blaj\u00ed za v\u00e1s, nem\u011bli by jste s t\u00edm po\u010d\u00edtat automaticky a do \u0161ablon a plugin\u016f m\u016f\u017eete p\u0159idat minifikovan\u00e9 a neminifikovan\u00e9 soubory. <\/p>\n\n\n\n
Jejich na\u010dten\u00ed doc\u00edl\u00edte malou \u00fapravou enqueue scriptu:<\/p>\n\n\n\n\n\n\n\n
Vid\u00edte, \u017ee $suffix p\u0159ipoj\u00ed min p\u0159\u00edponu, pokud nen\u00ed konstanta pou\u017eita. <\/p>\n","protected":false},"excerpt":{"rendered":"
Hled\u00e1n\u00ed chyby, nebo probl\u00e9mu v k\u00f3du, je n\u011bkdy jako hled\u00e1n\u00ed jehly v kupce sena. Nav\u00edc, pokud jsou js a css soubory \u0161ablony, nebo plugin\u016f minifikov\u00e1ny, je to je\u0161t\u011b v\u00edce obt\u00ed\u017en\u00e9. N\u011bkte\u0159\u00ed v\u00fdvoj\u00e1\u0159i na debugov\u00e1n\u00ed mysl\u00ed a v jejich produktech m\u016f\u017eete naj\u00edt minifikovan\u00e9 i neminifikovan\u00e9 verze soubor\u016f. Pou\u017e\u00edvaj\u00ed k tomu konstantu, kterou m\u016f\u017eete pou\u017e\u00edt ve wp<\/p>\n","protected":false},"author":1,"featured_media":4089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,19,30,34],"tags":[],"class_list":["post-5338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nezarazene","category-snippety","category-wordpress","category-wordpress-tipy"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5338"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=5338"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5338\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/4089"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=5338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}