Js file not loading on mobile

Hello.
On a desktop, the site loads fine. On mobile, some js is not being loaded - 404 error.
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cs-body.js.map, line 0)
…wp-content/themes/xpro/cornerstone/assets/dist/js/site/cs-body.js.map
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cs-head.js.map, line 0)
…/wp-content/themes/xpro/cornerstone/assets/dist/js/site/cs-head.js.map

Thanks

Hi there,

Those are sourcemap references. They’re only loaded if you’re using development tools to view the site, so this won’t cause any problems for your visitors. You’re getting a 404 because the files themselves don’t actually exist in the download package. They’re helpful while we develop the plugin, but they are rather large and are useless except in debugging so we exclude them to reduce file size.

Thanks @alexander.

The original issue is that fonts are incorrect on mobile. The only errors in console were those two files so I assumed they were the culprit.

So, since those files are not needed, how 'bout them fonts?

Hi there,

Are you using the new font manager? Regretfully there’s a bug that prevents fonts from loading. We’re working on getting it addressed, but for now it may be more stable to turn the font manager off.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.