diff --git a/examples/webengine/recipebrowser/recipebrowser.pro b/examples/webengine/recipebrowser/recipebrowser.pro
index c7e4dcaf8579f442bfad0d121b61d19569ec4bf5..2c2145fc6eab7e9b82e799890562eb346f171ca3 100644
--- a/examples/webengine/recipebrowser/recipebrowser.pro
+++ b/examples/webengine/recipebrowser/recipebrowser.pro
@@ -10,6 +10,9 @@ SOURCES += main.cpp
 
 RESOURCES += resources/resources.qrc
 
+# Make sure Qt Quick compiler does not remove the source code of the .js files.
+QTQUICK_COMPILER_SKIPPED_RESOURCES = resources/resources.qrc
+
 DISTFILES += \
     resources/pages/assets/3rdparty/MARKDOWN-LICENSE.txt \
     resources/pages/assets/3rdparty/MARKED-LICENSE.txt
diff --git a/examples/webenginewidgets/contentmanipulation/contentmanipulation.pro b/examples/webenginewidgets/contentmanipulation/contentmanipulation.pro
index 2ac97d48705ca613cf46cea4612be93e23c2a733..e0b568df0c6ad1a6b1df922b798e8926fc890b02 100644
--- a/examples/webenginewidgets/contentmanipulation/contentmanipulation.pro
+++ b/examples/webenginewidgets/contentmanipulation/contentmanipulation.pro
@@ -5,6 +5,10 @@ SOURCES =   main.cpp \
             mainwindow.cpp
 RESOURCES = jquery.qrc
 
+# Disable Qt Quick compiler because the example doesn't use QML, but more importantly so that
+# the source code of the .js files is not removed from the embedded qrc file.
+CONFIG -= qtquickcompiler
+
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/contentmanipulation
 INSTALLS += target
diff --git a/examples/webenginewidgets/markdowneditor/markdowneditor.pro b/examples/webenginewidgets/markdowneditor/markdowneditor.pro
index 2f58ae06164e6a05a5cb14952df16bece1fb17ca..7ffbd7487cde98ffdc46dd2bbf784d58a37ffa47 100644
--- a/examples/webenginewidgets/markdowneditor/markdowneditor.pro
+++ b/examples/webenginewidgets/markdowneditor/markdowneditor.pro
@@ -17,6 +17,10 @@ SOURCES = \
 RESOURCES = \
     resources/markdowneditor.qrc
 
+# Disable Qt Quick compiler because the example doesn't use QML, but more importantly so that
+# the source code of the .js files is not removed from the embedded qrc file.
+CONFIG -= qtquickcompiler
+
 FORMS += \
     mainwindow.ui