Will Custom JavaScript on Modern SharePoint Pages Continue to Work After October 2028?

SAIRAJ SURYAWANSHI 0 Reputation points
2026-12-04T08:09:44.9766667+00:00

Hi,

Our organization currently uses Classic SharePoint pages with custom HTML, CSS, and JavaScript. Our JavaScript files are stored in the Site Assets library and referenced through the Script Editor web part.

Following Microsoft's announcement regarding the retirement of classic SharePoint features, we are planning to migrate to Modern SharePoint pages while retaining the existing appearance and functionality of our application.

Our proposed migration approach is as follows:

  1. Create new Modern SharePoint pages.

Add the Modern Script Editor web part.

Copy our existing HTML and CSS into the Edit HTML Code section.

Reference our existing JavaScript files stored in the Site Assets library.

Refactor JavaScript code that depends on JSOM and Classic SharePoint features.

However, we have concerns regarding the upcoming custom scripting restrictions in October 2028.

We would appreciate clarification on the following questions:

Will the Modern Script Editor web part continue to function after October 1, 2028?

Will we still be able to add and modify HTML, CSS using the Edit HTML Code option?

Will custom JavaScript files stored in Site Assets but modified according to security policy and refactored according to modern pages continue to execute on Modern SharePoint pages?

How will the upcoming Content Security Policy restrictions affect this approach?

Is our proposed migration approach sustainable in the long term, or should we migrate to dedicated SPFx web parts instead?

We would appreciate your guidance on the officially recommended migration approach.

Thank you.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

1 answer

Sort by: Most helpful
  1. Heimerdinger 2,060 Reputation points Independent Advisor
    2026-12-04T15:16:12.95+00:00

    Hi @SAIRAJ SURYAWANSHI,

    Thank you for reaching out and for providing such a detailed explanation of your planned migration from Classic SharePoint pages to Modern SharePoint pages.

    I understand your concerns about maintaining your existing custom HTML, CSS, and JavaScript functionality, particularly with the upcoming custom scripting restrictions in October 2028.

    Since your questions involve SharePoint development, custom scripting, Content Security Policy (CSP), and long-term compatibility, I would recommend posting your questions in the Microsoft Tech Community.

    This community is designed for technical discussions and is monitored by Microsoft engineers, MVPs, and experienced SharePoint specialists. Posting there may provide broader visibility and help you receive more detailed guidance regarding the recommended migration approach.

    I apologize for redirecting you to another community, but I believe this would be a more suitable place to discuss your specific technical requirements.

    Additionally, since your concerns involve future SharePoint service behavior and potential backend restrictions, I would recommend raising a support ticket with Microsoft Support to seek further clarification.

    A Microsoft technical support engineer can investigate your organization's SharePoint environment, review relevant configurations, and help clarify how the upcoming restrictions may affect your implementation. Where necessary, the support team may also be able to escalate questions requiring confirmation from the appropriate product engineering team.

    Your organization's Global Administrator can create a service request through the Microsoft 365 admin center.

    For detailed instructions, please refer to:

    As a fellow community user, I do not have access to Microsoft's internal service logs, backend diagnostics, or engineering dashboards due to privacy and security restrictions. Therefore, I cannot officially confirm how the October 2028 restrictions will affect your specific implementation.

    I appreciate your understanding, and I sincerely apologize that I cannot provide a definitive answer here.

    I hope these resources help you obtain the clarification needed to plan your migration with confidence.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.