• Resolved Anonymous User 17612203

    (@anonymized-17612203)


    I have set Smar Slider to load after the page. Independend from this I have these 4 js loading right after the main entry (so place 2-5 in the waterfall)

    /plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider.min.css?ver=f1852c5c

    plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/n2.min.js?ver=f1852c5c

    plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider-frontend.min.js?ver=f1852c5c

    plugins/smart-slider-3/Public/SmartSlider3/Slider/SliderType/Simple/Assets/dist/smartslider-simple-type-frontend.min.js?ver=f1852c5c

    Do I really need 4 js files for SmartSlider? I know I can combine some, but this didn’t reduce the workload. Is there a way to unload some?
    How can I get them loading later? When I load the page there is a white screen at the beginning. Most of the time of the white screen is caused by this js files and if there is a chance to reduce this time I would be happy.

Viewing 1 replies (of 1 total)
  • Ramona

    (@nextend_ramona)

    Hi @check2020de

    All JavaScript files the slider loads are required for the slider to function the way it needs to. You can’t unload any of these files, that would just prevent the slider from working correctly. For this reason we don’t have option to do it.

    The Loading types, like the After page load only affect the load of the slider itself. The assets (CSS and JS files) are loaded with the other CSS and JS files the page loads.

    You can Combine and Async the JS files at Global settings > Framework > under JavaScript:
    https://smartslider.helpscoutdocs.com/article/1785-framework

    You can see a white area where the slider should be before the slider loads. This white area stays the longer the slider’s assets (CSS and JS files), and the rest of your site need to load.
    So if you want to load the slider’s JavaScript files as later as possible, then this white are will be visible longer, because the codes that would display the slider need much more time to do so.

    If you’re having speed problems, then I’d recommend checking what’s the root of your speed problems. You can use your browser to do it:
    https://smartslider.helpscoutdocs.com/article/1925-how-to-speed-up-your-site#why-slow

Viewing 1 replies (of 1 total)

The topic ‘Slider js scripts loading on top’ is closed to new replies.