Missing Critical JS Files (tagdiv_theme.min.js, tdb-site.js) and Mobile Performa

Posted in: Newspaper
Post count: 97

Hello TagDiv Support,

I am using the Newspaper theme (latest version) on my WordPress site, and am experiencing critical issues with missing frontend JavaScript files and related mobile performance problems.

Description of the Problem:

On my live site, the following critical theme JS files are returning 404 errors:

/wp-content/themes/Newspaper/js/tagdiv_theme.min.js

/wp-content/themes/Newspaper/js/tdb-site.js

This results in:

Broken frontend features (menus, blocks, theme interactivity).

Console errors such as “wp is not defined” and failures for any code dependent on the wp JS object.

Failed scripts when trying to use or customize TagDiv Composer, blocks, or advanced layouts.

File/Folder Structure Verified:

My Newspaper theme is installed at: /wp-content/themes/Newspaper/

The only theme folders present are: css, images, includes, translation, woocommerce (see attached screenshot).

No top-level /js/ directory is present in the parent Newspaper theme folder.

I checked within /includes/, where there’s a separate js folder, but it contains only backend/admin scripts, not the required frontend ones.

I have unzipped the original theme package from your download. There is still no /js/ directory at the theme root with the two required JS files.

Steps Taken:

Searched and extracted all folders in the downloaded Newspaper theme package, but could not find tagdiv_theme.min.js or tdb-site.js anywhere.

Cleared all WordPress, server, and browser caches, rechecked file system and browser console—issue persists.

Verified the problem recurs with a freshly installed, untouched Newspaper theme (not a child theme or plugin conflict).

Impact:

Site is not functioning properly for end users due to missing JavaScript.

Mobile Lighthouse audits show increased load times (LCP 5.6s+), slow visual completion, and warnings about render-blocking JS/CSS, many of which are worsened by missing or broken theme scripts.

Fundamental site features and performance are degraded on mobile and desktop.

Expected Resolution:

Please provide the correct /js/ directory and the latest versions of:

tagdiv_theme.min.js

tdb-site.js
so I can properly restore these to /wp-content/themes/Newspaper/js/.

If the theme package download I received is incomplete or missing files, please advise and provide a new download link or updated theme zip.

Advise if there may be a packaging, deployment, or installation issue on your end that affects the inclusion of essential JS files.

Optional/Additionally:

Please share a recommended method to ensure all critical JS assets are retained through future theme updates and can be verified after installation.

Any additional suggestions for resolving mobile loading/Lighthouse issues when all scripts are present and loading correctly.

Thank you for your help. Screenshots of my folder structure and file audits are attached for your reference.

Best regards,
Ameet
Newspatron.com

Console error screenshot
https://drive.google.com/file/d/1WisGWNru277WMt6d0twc0EvxeIVW0XkF/view?usp=sharing

Lighthouse screenshot
https://drive.google.com/file/d/1iAFtFb6z26XJdPg4myLTj0KlIoa4qnuS/view?usp=sharing

Post count: 35449

Hi,
The theme has only a single js file and that is on a different path:
wp-content/themes/Newspaper/includes/js/tagdiv-theme.min.js
The part for the mentioned js files is from the tagDiv Composer plugin
wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js also, the theme do not have a file like tdb-site.js
My recommendation: make sure that you have the latest theme version 12.73, and in case you are using a child theme, set the main theme.
Check when you are logged in and no cache and minify code is applied to see if the same error appears.
For the mobile version, you need a very good cache plugin.
You can also use the tagDiv mobile theme plugin, which will change the layout but will provide very good results – https://forum.tagdiv.com/mobile-theme-introduction/

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.