
Webflow's New Feature! Custom Code Preview Streamlines Development & Design Collaboration
Traditionally, when using custom code in Webflow, many users faced challenges such as "it's tedious to publish and check every time I modify code when I want to fine-tune button animations" or "discrepancies often arise between the designer's intended behavior and the developer's implementation." These issues led to time-consuming verification, delayed corrections, and difficulties in team collaboration.
However, with Webflow's newly implemented Custom Code Preview feature, these challenges are expected to be resolved, dramatically transforming the Webflow development process. This feature enables a smoother and more accurate development process, ultimately allowing for the efficient creation of high-quality websites.
Now, let's explore the Custom Code Preview feature, including its importance, benefits, and points to note.
What is Webflow Custom Code?
Webflow Custom Code refers to the addition of unique functionalities to a Webflow site using programming languages such as HTML, CSS, and JavaScript, in order to achieve advanced features that cannot be realized solely with Webflow's visual editor.

Importance: Why the Preview Feature is Welcomed
The "Custom Code Preview" feature is a significant enhancement in the "collaboration" domain, an area Webflow has been particularly focusing on in recent years. This is not merely a feature extension but a major step towards improving the overall quality of Webflow's development environment.
Webflow updates not only involve changes within the source code but also lead to improvements in the development workflow, with numerous features introduced to facilitate smoother team production.
For example, designers benefit from "being able to confirm changes directly in the visual editor, minimizing discrepancies with their vision," while developers gain the advantage of "being able to test without affecting the production environment, allowing them to modify code with confidence."
These feature enhancements streamline collaboration among designers, developers, project managers, and clients, promoting more accurate information exchange and consensus building.
Benefits of Webflow Custom Code
Webflow is a powerful platform that allows you to build beautiful websites without code, but by utilizing its "Custom Code" feature, even more flexible and advanced web development becomes possible.
Here, we will explain the specific benefits gained by leveraging Webflow's custom code.

Improved Development Efficiency
By using custom code, you can quickly implement unique behaviors and designs that cannot be achieved with Webflow's standard features alone.
For example, it allows for integration with external JavaScript libraries or APIs, and the addition of intricate animations and interactions.
This enables flexible adaptation to complex requirements and significantly boosts development speed.
Enhanced Quality
Leveraging custom code allows for the creation of higher-quality websites. For instance, it enables meticulous adjustments such as adding meta tags for SEO or controlling scripts for performance optimization.
Furthermore, incorporating the latest web technologies and best practices leads to improvements in user experience and security.
Strengthened Team Collaboration
Another benefit is that designers and engineers can collaborate more easily on the same platform. Designers can advance their designs in Webflow's visual editor, while engineers add custom code as needed, clarifying roles and enabling efficient teamwork.
Additionally, by incorporating code management and version control mechanisms, tracking change history and managing quality become easier.
How the Custom Code Feature Works and Simple Steps
Now, we will clearly explain how the "Custom Code" feature, essential for extending website functionality, works and its implementation steps.
- Open Preview mode in Webflow Designer.

- Turn on the custom code toggle button located at the bottom left of the preview screen.

- The custom code you've written (e.g., JavaScript, CSS) will be applied, and you can check its actual behavior on the preview screen.
- Modify the code as needed and re-verify in Preview mode.
This update allows you to check code behavior in real-time and proceed with development efficiently, without repeatedly publishing to a staging environment.
Webflow Custom Code Preview: Supported Code Types
In Webflow, you can use the "Webflow Custom Code Preview" feature to review these custom codes before they are applied to the production environment.
This allows you to detect unintended behavior or display errors in advance, ensuring a smooth development process. We will explain the types of custom code that can be previewed in Webflow and their benefits in an easy-to-understand manner for beginners.
Webflow Native Code
Code written directly into a Webflow project or page (e.g., JavaScript, CSS, HTML) can be previewed directly with Webflow Custom Code Preview. For example, when you write JavaScript code to display a popup window when a specific button is clicked, or CSS code to customize page layout within the Webflow editing environment, you can verify its behavior in real-time.
Marketplace Apps
In some cases, a portion of the code from apps installed from the Webflow Marketplace can also be previewed. Depending on the app, you can see how the code added by the app affects your site.
Compatible Third-Party Scripts/Resources
Webflow supports embedding some third-party scripts and CDN (Content Delivery Network) resources, making them previewable.

Important Considerations for Using Webflow Custom Code Preview
Webflow has earned a strong reputation as a powerful tool for website creation. The recently announced Custom Code Preview feature brings significant convenience to designers and developers. To smoothly utilize this useful feature, there is one important point to note regarding its implementation.
External Hosted Script Compatibility
Webflow's Custom Code Preview feature facilitates the integration of externally hosted scripts such as maps, social media buttons, and specific applications. However, for security reasons, some externally hosted scripts only permit access from specific domains.
In Webflow's Preview and Comment modes, *.webflow.io, *.webflowpreview.com, or project-specific preview domains are used. When accessing externally hosted scripts from these preview domains, it may be necessary to modify settings on the script provider's side or within the hosting environment.
For example, when using the Google Maps API, you need to add Webflow's preview domains to the API key restriction settings. It's good to remember that for other services as well, it's often necessary to add these domains to an allowlist.

Summary
Webflow's new "Custom Code Preview" feature is an update that dramatically improves the efficiency and quality of website creation. Traditionally, verifying custom code required publishing the site, which was time-consuming. This update now allows for real-time verification in preview mode.
Not only Webflow native code such as HTML, CSS, and JavaScript, but also some Marketplace apps and third-party scripts can be previewed. This significantly contributes to strengthening collaboration between designers and developers, increasing development speed, and building high-quality websites. For instance, designers can now correct discrepancies between visuals and code on the spot, and developers can test without worrying about impacting the production environment.
However, it's important to note that when using externally hosted scripts, you may need to add Webflow's preview domains to an allowlist. This new feature is a powerful tool that further enhances Webflow's usability, enabling smoother and faster website creation. If you are considering using Webflow for website creation or have any questions, please feel free to contact Booos7.
Booostはノーコードツール「Webflow」に特化したWeb制作サービスです。
デザイン・マーケティング・翻訳の3つの最適化で、Webサイトの集客力を最大化します。

