Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script dan CSS selalu bertambah #1

Open
3 tasks done
yuliakbard opened this issue Jul 5, 2023 · 3 comments
Open
3 tasks done

script dan CSS selalu bertambah #1

yuliakbard opened this issue Jul 5, 2023 · 3 comments
Labels

Comments

@yuliakbard
Copy link

yuliakbard commented Jul 5, 2023

Make sure that your issue is reproducible by doing the following tasks

  • I am using application packages whose source code is not optimized for production (source code is not minified).
  • I have activated the test mode by changing the TEST constant value to true in the .\index.php file.
  • I have made sure that there are files named error or error-x or error-y in the .\engine\log folder.

What installation method did you use?

Git

Describe your issue in the field below

javascript dan CSS pada halaman selalu bertambah, saat halaman dimuat.

image
image

state.php pada extension php, hanya di setting basic saja.

return [
    // List of element(s) to which the content(s) and attribute(s) will always be compared on every request
    // If you are not sure about this value, you can set it as `body`
    'sources' => "body > div, body > svg, body > template, meta[name='description']",
    // Default application state(s)
    'state' => [
        'cache' => false,
        'history' => true,
        // Add custom request header(s) here
        'lot' => [
            'x-requested-with' => 'F3H'
        ],
        'sources' => 'a[href], form',
        'turbo' => false,
        'type' => 'document', // Default response type
        'types' => [
            "" => 'document', // Default response type for extension-less URL
            'CSS' => 'text',
            'JS' => 'text',
            'JSON' => 'json'
        ]
    ]
];

pada bagian 'sources' => "body > div, body > svg, body > template, meta[name='description']", juga telah di set ke elemen specific, tetapi masih terjadi penambahan javascript dan css

Package version

Development version (package on the main branch)

Package version number

No response

What browsers are you seeing the problem on?

Chrome, Edge, Firefox

Error logs of the core application if any

no logs

Error log of the extension if any

no logs

Error log of the layout if any

no logs

General error logs if any (if the application fails to set a custom error log path, then the error log will usually appear in this location)

no logs
@yuliakbard yuliakbard changed the title <script> dan <link rel="stylesheet"> selalu bertambah script dan CSS selalu bertambah Jul 5, 2023
taufik-nurrohman added a commit to taufik-nurrohman/f3h that referenced this issue Jul 10, 2023
@taufik-nurrohman
Copy link
Member

Sementara coba ganti dengan ini bisa atau tidak: https://github.com/taufik-nurrohman/f3h/releases/tag/v1.2.14

@yuliakbard
Copy link
Author

yuliakbard commented Jul 12, 2023

sudah bisa kang, cuma kayak ada transition yg tidak smooth saat perubahan dari laman satu ke laman lainnya. seperti style nya baru termuat belakangan gitu kang, mungkin karena faktor response time yg bertambah karena ane custom route url css nya😅 .

@taufik-nurrohman
Copy link
Member

Karena CSS yang lama Saya buang dulu sebelum yang baru dimuat, supaya tidak terjadi duplikat. Biasanya karena ukurannya terlalu besar jadi pas memuat CSS yang baru agak delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants