diff --git a/core/lib/presentation/utils/html_transformer/html_utils.dart b/core/lib/presentation/utils/html_transformer/html_utils.dart index 28881d60d..7ae5eec1a 100644 --- a/core/lib/presentation/utils/html_transformer/html_utils.dart +++ b/core/lib/presentation/utils/html_transformer/html_utils.dart @@ -61,40 +61,6 @@ class HtmlUtils { } '''; - static const scriptLazyLoadImage = ''' - - '''; - static String customCssStyleHtmlEditor({TextDirection direction = TextDirection.ltr}) { if (PlatformInfo.isWeb) { return ''' diff --git a/core/lib/presentation/views/html_viewer/html_content_viewer_on_web_widget.dart b/core/lib/presentation/views/html_viewer/html_content_viewer_on_web_widget.dart index d753739e6..d650623d0 100644 --- a/core/lib/presentation/views/html_viewer/html_content_viewer_on_web_widget.dart +++ b/core/lib/presentation/views/html_viewer/html_content_viewer_on_web_widget.dart @@ -4,7 +4,6 @@ import 'dart:math' as math; import 'package:core/presentation/extensions/color_extension.dart'; import 'package:core/presentation/utils/html_transformer/html_template.dart'; -import 'package:core/presentation/utils/html_transformer/html_utils.dart'; import 'package:core/presentation/views/html_viewer/html_viewer_controller_for_web.dart'; import 'package:core/utils/app_logger.dart'; import 'package:flutter/cupertino.dart'; @@ -171,7 +170,7 @@ class _HtmlContentViewerOnWebState extends State { minHeight: minHeight, minWidth: minWidth, styleCSS: tooltipLinkCss, - javaScripts: webViewActionScripts + scriptsDisableZoom + HtmlUtils.scriptLazyLoadImage, + javaScripts: webViewActionScripts + scriptsDisableZoom, direction: widget.direction); return htmlTemplate; diff --git a/core/lib/presentation/views/html_viewer/html_content_viewer_widget.dart b/core/lib/presentation/views/html_viewer/html_content_viewer_widget.dart index c372dbd94..3a3b1dd75 100644 --- a/core/lib/presentation/views/html_viewer/html_content_viewer_widget.dart +++ b/core/lib/presentation/views/html_viewer/html_content_viewer_widget.dart @@ -68,7 +68,6 @@ class _HtmlContentViewState extends State { _htmlData = generateHtml( widget.contentHtml, direction: widget.direction, - javaScripts: HtmlUtils.scriptLazyLoadImage ); } @@ -81,7 +80,6 @@ class _HtmlContentViewState extends State { _htmlData = generateHtml( widget.contentHtml, direction: widget.direction, - javaScripts: HtmlUtils.scriptLazyLoadImage ); } }