A user reports that their Discourse instance occasionally fails to load detail pages, showing a spinny icon despite successful network requests. While the homepage loads, navigating to a post results in a blank page, which is resolved by restarting services. The issue appears to be related to JavaScript files being loaded with incorrect MIME types (text/plain instead of valid JavaScript types), as indicated by console errors. The user has shared the console output, and others are asking for more details on the installation and restart process to help diagnose the problem. bmbouter describes the symptoms, pfaffman asks about the restart method and installation, RGJ suggests checking the browser console, and dkliban seeks investigation tips.
Well it happened again! Here’s the console output I see when I load the spinny, non-loading page:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension:71:798183
The script from “https://discourse.pulpproject.org/assets/application-9cf0708329277a59e339ffd660e1407d87268f2fb1d128161d8526100c8a016b.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/locales/en-5b6e3ef1f697f5243844c52bd6962ca6b17263cc635d3eb919fdd6615a94eb40.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/browser-detect-115ab5953de1b5bb122bfb26b757f5391dd8d1d2aef2b81baf7b59aee99d9f34.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/vendor-dde8b5f2dd41adf78c88e7719455c3a5d4db146cb96d783a2dc1ed978892f200.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/pretty-text-bundle-040ac8329a20a2521202a2d2c59aa36509c83fc079f86105bfd735894194388d.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/ember_jquery-36a23101c869ab0dc53fc908de69adb785731593573d32bdeef416acc1076ef4.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/discourse-calendar-147b35df80b2de17a6577b94377b89f271c407af7bf10a4dbb619efdd3c58678.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/discourse-details-61554ea83ad59329c2d5c9f0390a0498f3e3665deb58d32dc608aeca24fa0bb9.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/discourse-local-dates-5edf452312b471fbb9ea9a9ad686e24becaf6d38d13456ac170b45902409d1cf.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/discourse-narrative-bot-0b1e40d099d739cee23bbad45c2fb5eac1dcaaba028fdc9fa21b9e32930ec40b.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/discourse-presence-e575490133b5e948d5db094ba04f265c777e7d5003f1b418d1b7a38c8f64a317.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/lazy-yt-4e94ac3522a311236b5b7b0cf0ad4f98ee8632f45a4c686ac5b6676fcabe6f78.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/plugins/poll-752dadfc5017172081b079c7c6b1392a46420ea148d399f83683c07d36f64509.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/start-discourse-efa4e5abfbd1b50b5152ffbe64d5dcea9f7c33f766dcc6387e2711f0f2112148.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
The script from “https://discourse.pulpproject.org/assets/browser-update-eec13eb6f8386f18f10b5dd6ebb7a3598d28421bb796e539b91a7e4a4c5d4c08.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. 259
InstallTrigger is deprecated and will be removed in the future. _ember_jquery-36a23101c869ab0dc53fc908de69adb785731593573d32bdeef416acc1076ef4.js:11025:53
Could not view topic TypeError: e.jqXHR is undefined
errorLoading _application-9cf0708329277a59e339ffd660e1407d87268f2fb1d128161d8526100c8a016b.js:19281
refresh _application-9cf0708329277a59e339ffd660e1407d87268f2fb1d128161d8526100c8a016b.js:18428
jQuery 26
_application-9cf0708329277a59e339ffd660e1407d87268f2fb1d128161d8526100c8a016b.js:31367:18
The script from “https://discourse.pulpproject.org/javascripts/magnific-popup/1.1.0/jquery.magnific-popup.min.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
259
Failed to register Service Worker: TypeError: ServiceWorker script at https://discourse.pulpproject.org/service-worker-1f9399366b6e40904e6ffb0fcf626c6ff9c0f968296a7b9737f1035b61ff5a92.js for scope https://discourse.pulpproject.org/ threw an exception during script evaluation. _application-9cf0708329277a59e339ffd660e1407d87268f2fb1d128161d8526100c8a016b.js:76317:20