Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

WEB : How to REDUCE UNUSED Javascript

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
javascriptwebsite_builderwebpageminifySEO
1 Beantwoorden
4487 Weergaven
Avatar
Jozef Slivka

After webpage tests, I see clearly the largest issue (more than first 7seconds loading time) why the mobile version is performing poorly is super large UNUSED Javascripts, and it says "Reduce unused Javascript" for the following....BUT how? 
web.assets_frontend_lazy.min.js - 924KB
en_US/base.js - 602KB
recaptcha__en.js - 162KB
www-embed-player.js - 109KB
Why odoo is serving complex Javascript files, if I am not using most of it? How to minify it, or totally not used it, OR set it to be loaded as last thing, AFTER page is rendered?
At the moment JAVASRIPTS are loading as very first files, so it creates much larger Page render time fo user as it should be.

0
Avatar
Annuleer
Barry

I'm having the same issue and trying to figure out how to remove unused js. Lighthouse and WebVitals have identified the same ...lazy.min.js file as a culprit and I can't seem to access nor edit this file. This is a huge throw off for me.

No solutions on your end as yet?

Avatar
Juan Valencia
Beste antwoord

Though I don't know how to reduce the size, and I'm looking for the same answer, may you post the website link you are testing, and I assume you are using PageSpeed insights?


Odoo pretty much packages the entire framework in a single JS file that is already minified, and it's loaded after the page is rendered. (it uses the defer atribute). So far there is nothing we can do to reduce that file but we can look the PageSpeed reports and find if the bottleneck is somewhere else.

0
Avatar
Annuleer
Jozef Slivka
Auteur

Hi, well different tools shows different issues : https://tools.pingdom.com/ shows the F-grade "Add Expires headers" and as E grade " Compress components with gzip"...pretty important..
Pagespeed shows best savings in:
5.6s in Reduce unused JavaScript (especially important issue for Mobile users)
2s in Reduce initial server response time
seems there is alot other details which could be done in more complex way, to speed up the user experience.....from my point of view the biggest issues are mainly the biggest delays...any ideas?

Juan Valencia

That's very strange. Odoo uses nginx server and it serves files with gzip compression by default.

As for "expire headers", they are set in all resources except in the HTML page itself. Odoo doesn't cache the html page, so everytime it is called, the qweb is rendered and it serves the html page. But the resources like css, js, images, fonts, etc, they do have expire headers.

I was curious about tools.pingdom tool, tried it against to my site and it doesn't show any result in the https version. Only on the http version and shows a 301 redirect because I forwad all http traffic to https. That tool doesn't seem to support https at all. To be honest, it looks like a terrible tool. Use another one.

As for ideas... have you already configured a CDN? That alone will improve the response speed and reduce delays. There are free ones available. Even Odoo has documentation about a particular CDN.

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to Add rel="nofollow" to External Links in Odoo?
website_builder Website SEO
Avatar
0
apr. 25
2111
Need Assistance Connecting Button to JavaScript Code in Odoo 17
javascript editor website_builder
Avatar
0
mrt. 24
2401
Javascript loaded into website.assets_frontend only working on homepage not internal "pages" <<Solved>> Opgelost
javascript website_builder themes
Avatar
1
dec. 23
14599
Website Builder jQuery
javascript jquery website_builder
Avatar
0
feb. 22
3637
Target Specific XML Element with JavaScript
javascript customization website_builder
Avatar
0
feb. 22
3175
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now