function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kr. Rohit YadavKr. Rohit Yadav 

Site visualforce page not working


We are using Site page for NPS where Vf pages are added to home page. But vf page is showing loading screen continuosuly. I tried opening from dev console the same loading issue is also there. Please let me know any resolution.

User-added image

This VF page is calling lwc component to load content on the page.

VinayVinay (Salesforce Developers) 
Hi Rohit,

Is this specific not work only on site? Also check sample reference below.
<div id="loading" class="slds-scope">
<div class="slds-align_absolute-center">
<div class="spinner-border slds-m-right_medium"></div>
Loading. . . Please wait.

$Lightning.use("c:DFEH_Case_ScreeningQuestions", function () {
$Lightning.createComponent("c:dfehCaseScreeningQuestions", {}, "screeningQuestionsContainer",
function (cmp) {
var loadingDivElement = document.getElementById("loading"); = 'none'
var ltngDivElement = document.getElementById("screeningQuestionsContainer"); = 'block';
console.log('AppWebApp VF Page includer initialized');;