The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
A modern page will remain editable after October 1, 2028, but JavaScript pasted into an SPFx Script Editor web part should be migrated into a dedicated SPFx component because SharePoint Online CSP blocks that inline-script pattern independently of the classic-page retirement.
Expected behavior
| Question | Expected behavior |
|---|---|
| Will the modern Site Page remain editable? | Yes. The October 1, 2028 read-only change applies to classic user-created wiki, Web Part, blog, publishing, and certain custom ASPX pages—not modern Site Pages. ^1^ |
| Will the Script Editor continue rendering HTML? | The documented CSP behavior says HTML added through the community Script Editor web part continues to render. |
| Will pasted JavaScript/jQuery continue executing? | Do not rely on it. Microsoft explicitly states that the community Script Editor web part and its variations use inline script, and under CSP the added script will not execute even though the HTML remains. CSP enforcement began March 1, 2026, with a one-time option to delay it only until June 1, 2026. ^2^ |
Does DenyAddAndCustomizePages = true affect it? |
That setting blocks classic Script Editor/Content Editor features and removes SPFx web parts whose manifest has "requiresCustomScript": true. Your "requiresCustomScript": false avoids that specific SPFx availability rule, but it does not exempt dynamically inserted or inline JavaScript from CSP. ^3^ |
| Is the current Script Editor approach officially supported long-term? | SPFx itself is Microsoft’s supported extensibility model. A community or third-party Script Editor that accepts arbitrary HTML and script is not thereby converted into a Microsoft-supported script-hosting pattern. Microsoft identifies the community Script Editor specifically as affected by inline-script blocking. |
| Should the dashboard become a dedicated SPFx web part? | Yes. Move the executable logic into the SPFx bundle while retaining the existing lists and, where practical, the existing business logic. |
Recommended migration
A complete dashboard rebuild is not necessarily required:
- Keep the modern page and existing SharePoint lists.
- Create a dedicated SPFx client-side web part for the dashboard.
- Move the pasted JavaScript into TypeScript/JavaScript modules under the SPFx project.
- Move HTML generation into the web part’s render/component implementation rather than injecting
<script>elements. - Package smaller third-party dependencies with the web part. For example:
import * as $ from 'jquery';
export function initializeDashboard(container: HTMLElement): void {
const dashboard = $('<div>')
.addClass('dashboard-container')
.text('Loading dashboard…');
$(container).empty().append(dashboard);
}
SPFx supports packaged external libraries and also supports declaring libraries as external dependencies. ^4^
- For externally hosted scripts, configure them through SPFx
externalsorcdnBasePath. SharePoint can then import those locations into SharePoint admin center → Advanced → Script sources. Scripts loaded by other dynamic mechanisms require an appropriate trusted script source; inline scripts should instead be moved into script files. ^2^ - Deploy the
.sppkgthrough the SharePoint App Catalog and test with ordinary users, because an SPFx web part runs in the current user’s context and its list requests remain subject to that user’s permissions.
SPFx is the supported model for modern-page web parts, but code should remain inside SPFx-supported extension points. Avoid dependencies on SharePoint’s surrounding page DOM or CSS selectors because the page DOM is not an API and can change. ^5^
Practical conclusion
The page itself is not threatened by the October 2028 classic-page read-only milestone. The risk is the implementation inside the generic Script Editor: its inline JavaScript is subject to CSP and should not be considered a durable execution mechanism.
Retain the modern page, lists, and reusable dashboard logic, but package executable code and dependencies in a governed SPFx web part. This also avoids relying on temporarily disabling DenyAddAndCustomizePages, which will be enforced as True and cannot be changed when the October 2028 phase applies to existing tenants. ^1^
References