WordPress bloat: 1300+ lines of redundant code in HTML files
-
Hi folks
I’ve been investigating this problem since some time now and could not find a solution.
The problem: code bloat. All WordPress HTML files for a specific Web site contain 1300+ lines of unneeded WP media code, regardless if logged in or out as admin. If these were at least just external JS files, I could exclude them but no, the code is inline. Following is the list of the inline WP Javascript files:
<script type=”text/html” id=”tmpl-media-frame”>
<script type=”text/html” id=”tmpl-media-modal”>
<script type=”text/html” id=”tmpl-uploader-window”>
<script type=”text/html” id=”tmpl-uploader-editor”>
<script type=”text/html” id=”tmpl-uploader-inline”>
<script type=”text/html” id=”tmpl-media-library-view-switcher”>
<script type=”text/html” id=”tmpl-uploader-status”>
<script type=”text/html” id=”tmpl-uploader-status-error”>
<script type=”text/html” id=”tmpl-edit-attachment-frame”>
<script type=”text/html” id=”tmpl-attachment-details-two-column”>
<script type=”text/html” id=”tmpl-attachment”>
<script type=”text/html” id=”tmpl-attachment-details”>
<script type=”text/html” id=”tmpl-media-selection”>
<script type=”text/html” id=”tmpl-attachment-display-settings”>
<script type=”text/html” id=”tmpl-gallery-settings”>
<script type=”text/html” id=”tmpl-playlist-settings”>
<script type=”text/html” id=”tmpl-embed-link-settings”>
<script type=”text/html” id=”tmpl-embed-image-settings”>
<script type=”text/html” id=”tmpl-image-details”>
<script type=”text/html” id=”tmpl-image-editor”>
<script type=”text/html” id=”tmpl-audio-details”>
<script type=”text/html” id=”tmpl-video-details”>
<script type=”text/html” id=”tmpl-editor-gallery”>
<script type=”text/html” id=”tmpl-crop-content”>
<script type=”text/html” id=”tmpl-site-icon-preview”>System environment: lastest WP with Elementor, Woocommerce, Kadence Theme, and Modern Events Calendar.
It seems that WordPress itself is the culprit here.
- The topic ‘WordPress bloat: 1300+ lines of redundant code in HTML files’ is closed to new replies.