mecha-cms / x.f3h

Progressively enhanced JavaScript AJAX features for your existing web pages.
GNU General Public License v3.0
0 stars 0 forks source link

script dan CSS selalu bertambah #1

Open yuliakbard opened 1 year ago

yuliakbard commented 1 year ago

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

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
taufik-nurrohman commented 1 year ago

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

yuliakbard commented 1 year ago

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 commented 1 year ago

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.